Migrating IMAP accounts

I used isync/mbsync for that when I switched to mail-in-box. Worked very well for me.