imapsync tool is used to migrate IMAP accounts or to backup IMAP accounts. This guide explains how you can migrate mailboxes between IMAP servers with imapsync.

Installation
=======...