GMail Migration

E-Mail

  • Migration of e-mail can be done using IMAP Sync:
  • Install IMAP Sync:
$ emerge imapsync
  • To sync all folders from source i.e. Google Mail to destination:
$ imapsync --host1 imap.googlemail.com  --port1 993 --ssl1 --user1 <yourname>@gmail.com \
           --host2 mail.awesome-mail.de --port2 993 --ssl2 --user2 <yourname>@awesome-mail.de

Note that you must specify your e-mail address as username for mail.awesome-mail.de. Otherwise IMAP Sync cannot find the correct destination folder.

  • To sync only a specified folder i.e. INBOX:
$ imapsync --host1 imap.googlemail.com  --port1 993 --ssl1 --user1 <yourname>@gmail.com \
           --host2 mail.awesome-mail.de --port2 993 --ssl2 --user2 <yourname>@awesome-mail.de \
           --folder INBOX --prefix2 ""
  • To sync only a specified folder i.e. INBOX to another folder on the destination server i.e. gmail_inbox:
$ imapsync --host1 imap.googlemail.com  --port1 993 --ssl1 --user1 <yourname>@gmail.com \
           --host2 mail.awesome-mail.de --port2 993 --ssl2 --user2 <yourname>@awesome-mail.de \
           --folder INBOX --prefix2 ""  --regextrans 's#INBOX#gmail_inbox#'

Calendar

  • Can be manually synchronized by exporting Google calendar events in ICAL format.

  • Line breaks (or comma's) in location field of imported events get a backslash (“\”) which should be filtered/fixed.
  • When using Android MS Exchange interface and Kolab ActiveSync, all calendars are shown in a single exchange calendar on Android.

Contacts

  • Can be manually synchronized by exporting Google contacts in VCF format.

  • Lots of VCards without name but existing E-Mail address might be imported. Some filter functions would be nice.
  • Method to merge one or multiple similar contacts would be nice.