imapsync

Email IMAP tool for syncing, copying and migrating email mailboxes between two IMAP servers, one way, and without duplicates. More information: <https://imapsync.lamiral.info>.

Alpine
RUN apk add imapsync
Fedora
RUN dnf install -y imapsync
click the source code to copy install imapsync on any operating system with command-not-found.com