Moved imap calls to MailService