Created
January 2, 2015 20:55
-
-
Save wwitzel3/f74c4394bb7254ea5b33 to your computer and use it in GitHub Desktop.
imapsync for fastmail to local Maildir
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
#!/bin/bash | |
set +x | |
imapsync --host1 mail.messagingengine.com --user1 USERNAME --password1 PASSWORD \ | |
--host2 localhost --user2 USERNAME --password2 PASSWORD \ | |
--ssl1 --noauthmd5 --split1 100 --split2 100 \ | |
--useheader 'Message-Id' --syncinternaldates --skipsize --allowsizemismatch \ | |
--include "Sent Mail|Sent|Sent Items" --exclude "All Mail" \ | |
--delete2 --expunge2 --nolog | |
cd ~/Maildir | |
git add -A | |
git commit -m 'imapsync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment