Backup an email account to mongo using IMAP