The DataVare Mail Migration Tool allows users to transfer emails directly from one IMAP server to another. It can move email data to any cloud email provider that supports the IMAP protocol. During email migration from one IMAP to another, the software preserves the formatting of the mailbox folder which contains all email folders and attachments. Users can also transfer emails from any IMAP server to an email client such as G Suite, Outlook.com, Zoho Mail, AOL Mail, AWS WorkMail, Yandex Mail and others. The software is compatible with all IMAP clients and Windows operating system versions. The free trial edition enables you to migrate a few emails for testing.
https://www.datavare.com/software/mail-migration-tool.html