Moving IMAP from another Server
Here's a great third-party utility:
http://home.arcor.de/armin.diehl/imapcopy/IMAPCopy.zip
It has a text file that you can edit and insert a list of usernames and
passwords for the source and destination server and it will migrate all
messages including folders and flags using IMAP. Works great with
Mailtraq.