Skip to content

Instantly share code, notes, and snippets.

@davidhund
Created November 16, 2020 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidhund/08161f76ac0dad2e71d2fcc69f435c5a to your computer and use it in GitHub Desktop.
Save davidhund/08161f76ac0dad2e71d2fcc69f435c5a to your computer and use it in GitHub Desktop.
Sync IMAP mail through Docker imapsync - example
# 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