Moves mail from an IMAP server to a SQL database.