about to switch to imapclient instead of imaplib
Merge https://github.com/mjmj/imap-client