Last active
December 4, 2023 18:27
-
-
Save julesjanssen/76e579f556bd52fa131f to your computer and use it in GitHub Desktop.
imapsync from Gmail / Google apps to Fastmail
This file contains hidden or 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
#!/bin/sh | |
imapsync --host1 imap.gmail.com --user1 [email protected] --ssl1 --password1 "xxxx" \ | |
--host2 mail.messagingengine.com --user2 [email protected] --ssl2 --password2 "xxxx" \ | |
--prefix1 "[Gmail]/" \ | |
--exclude "All Mail" \ | |
--nofoldersizes \ | |
--skipcrossduplicates \ | |
--folderlast "[Gmail]/All Mail" \ | |
--regextrans2 's/\[Gmail\]/Gmail/' \ | |
--regextrans2 's/Sent Mail/Sent Items/' \ | |
--regextrans2 's/(Sent Messages .*)/Sent Items/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment