Email Migration is a process used to migrate mailbox content from one account to another.
The command imapsync is a tool allowing incremental and recursive imap transfer from one mailbox to another.
By default all folders are transferred, recursively. We sometimes need to transfer mailboxes from one imap server to another. This is called migration.
imapsync is a good tool because it reduces the amount of data transferred by not transferring a given message if it is already on both sides. Same headers, same message size and the transfer is done only once. All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted. You can stop the transfer at anytime and restart it later, imapsync works well with bad connections.
usage: /usr/bin/imapsync [options]
Several options are mandatory. Continue reading…