expose imap object to mail listener.