Skip to content

Instantly share code, notes, and snippets.

@shillcock
Created January 10, 2009 08:15
Show Gist options
  • Save shillcock/45413 to your computer and use it in GitHub Desktop.
Save shillcock/45413 to your computer and use it in GitHub Desktop.
imapsync --host1 imap.gmail.com \
--port1 993 --user1 user\@gmail.com \
--passfile1 ./passfile1 --ssl1 \
--host2 imap.gmail.com \
--port2 993 --user2 [email protected] \
--passfile2 ./passfile2 --ssl2 \
--syncinternaldates --split1 100 --split2 100 \
--authmech1 LOGIN --authmech2 LOGIN \
--regexmess 's/Delivered-To: user\@gmail.com/Delivered-To: user\@domain.com/g' \
--regexmess 's/<user\@gmail.com>/<user\@domain.com>/g' \
--regexmess 's/Subject:(\s*)\n/Subject: (no--subject)$1\n/g' \
--regexmess 's/Subject: ([Rr][Ee]):(\s*)\n/Subject: $1: (no--subject)$2\n/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment