debug and migrate IMAP accounts from the command line