Improve IMAP example