Skip to content

Instantly share code, notes, and snippets.

@wwitzel3
Created January 2, 2015 20:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wwitzel3/f74c4394bb7254ea5b33 to your computer and use it in GitHub Desktop.
Save wwitzel3/f74c4394bb7254ea5b33 to your computer and use it in GitHub Desktop.
imapsync for fastmail to local Maildir
#!/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