Created
November 16, 2020 08:01
-
-
Save davidhund/08161f76ac0dad2e71d2fcc69f435c5a to your computer and use it in GitHub Desktop.
Sync IMAP mail through Docker imapsync - example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# imapsync - https://imapsync.lamiral.info/ | |
# Sync IMAP mailboxes between hosts | |
# Run through Docker | |
# Some Documentation: https://imapsync.lamiral.info/doc/TUTORIAL_Unix.html | |
# --dry —> DRY-RUN, NO ACTUAL CHANGES (YET) | |
# --search —> "SENTSINCE 1-Jan-2021", Get new-ish mail only | |
docker run gilleslamiral/imapsync imapsync \ | |
--dry \ | |
--host1 mail.HOST1.com \ | |
--user1 USER_HOST1 \ | |
--password1 PASS_HOST1 \ | |
--host2 mail.HOST2.com \ | |
--user2 USER_HOST2 \ | |
--password2 PASS_HOST2 \ | |
--noreleasecheck \ | |
--no-modulesversion \ | |
--nosslcheck \ | |
--nochecknoabletosearch \ | |
--nofoldersizesatend \ | |
--automap \ | |
--search "SENTSINCE 1-Jan-2021" \ | |
--exclude 'Drafts|Spam|Junk|Trash|Concepten|Verwijderde items|Ongewenste e-mail' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment