imap class / mail controller