Added IMAP support for mail client backend