FlipsideReality Once upon a time, in a land far far away…

18Feb/100

Copy email into gmail using imapsync

Imapsync has added support for gmail recently. The FAQ lists an example too. This is how I did it (coming from courier) :

./imapsync \
--host1 mail,from.com --user1 user@from.com --tls1 --authmech1 LOGIN \
--host2 imap.gmail.com --user2 user@to.com --ssl2 --authmech2 LOGIN --port2 993 \
--exclude Trash --useheader 'Message-Id' --skipsize \
--regextrans2 's|Sent|\[Google Mail\]/Sent Mail|g' \
--regextrans2 's|Drafts|\[Google Mail\]/Drafts|g' \
--dry --justfolders

It's worth noting that this is only if you signed up in the UK, elsewhere substitute 'Google Mail' for 'Gmail'. You;ll also need to remove the --dry --justfolders for the real run, as the command as is will just show you what it's going to do (dry run).

hth, W

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.