Skip to content

Instantly share code, notes, and snippets.

@michabbb
Created June 12, 2017 12:15
Show Gist options
  • Save michabbb/5684246b9176c1d719a4c5ef05635b5c to your computer and use it in GitHub Desktop.
Save michabbb/5684246b9176c1d719a4c5ef05635b5c to your computer and use it in GitHub Desktop.
Transfer all emails to Gmail with imapsync
# based on your language you have to change the word "Gesendet" (german for Sent)
docker run --rm skempken/imapsync --host1 mail.xxxxx.com --authmech1 PLAIN --ssl1 --port1 993 --user1 xxxxxx --password1 'xxxxxxx' --debug --port2 993 --ssl2 --host2 imap.gmail.com --user2 xxxxxxx --password2 xxxxxxxxxxxx --addheader --exclude "\[Gmail\]$" --regextrans2 's,^Sent Items$,[Gmail]/Gesendet,' --regextrans2 "s/[ ]+/_/g" --regextrans2 "s/['\^\"\\\\]/_/g" --useuid
@michabbb
Copy link
Author

a tweet from the maintainer of imapsync:

Thanks Michael for this doc! I've also started to dockerize imapsync myself, a more up to date release https://hub.docker.com/r/gilleslamiral/imapsync/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment