Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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