- Dump to local (pdf, txt, ... eml), use https://github.com/polo2ro/imapbox
- Dump to local WIN ONLY, eml, use https://github.com/Securcube/ImapDownloader
see ./imapsync.sh
brew install imapsync
use WSL2 and see ./imapsync.sh
then use:
bash -c "/home/administrator/imapsync/imapsync --host1 imap.server.tld --user1 email@domain.tld --password1 PW1 --host2 imap.server2.tld --user2 email@domain.tld --password2 PW2 --automap --delete2 --delete2folders --showpasswords --nossl2 --dry"
// source
--host1 imap.server.tld
--user1 email@domain.tld
--password1 PW1
// target
--host2 imap.server2.tld
--user2 email@domain.tld
--password2 PW2
--nossl2 // ignore ssl errors on target
--automap // map IMAP folders in different languages and alternatives
--delete2 // delete emails from target if they have been removed from source
--delete2folders // same for folders
--showpasswords // log passwords (check for commandline errors)
--dry // dry-run - do not change mails and folders, but check if everything would work