IMAP module in the making