michael-adler / sync-google-contacts

Automatically exported from code.google.com/p/sync-google-contacts
18 stars 12 forks source link

Synchronize contacts across a set of GMail accounts. The accounts may be normal GMail accounts or in Google Apps. The script is tested for synchronizing two users and only marginally tested for three or more.

Unlike most shared group synchronizers, this script synchronizes all group names and then all contacts except for contacts in groups named --private on the command line.

This contacts-sync Python script depends on the Google Data APIs Python Client Library (https://code.google.com/p/gdata-python-client) which must be installed separately.

IF YOU READ NOTHING ELSE: Pay particular attention to the way contacts are merged on the first run. Duplicate contacts across users will result in duplication everywhere. See the synchronize all contacts section below.

Accounts and passwords are stored in ~/.google/config. See the sample/config file here for an example.

The algorithm: