MailProcessor class