Beginning of MailReader class