Pi’s Blog

My blog about Thunderbird and GSoC 2008

gContactSync and Hosted Google Accounts

I received feedback from two users who use Google Apps for your Domain saying that they cannot authenticate.  The reason for this is a mistake on my end that only allowed Google Accounts (ending in gmail.com).  I believe I have fixed this, although I do not have a way to test it.

If you want to fix it yourself before the next release, follow the steps below

  1. Delete the synced address book (Google Contacts) and close the Address Book window
  2. Go to Tools -> Add-ons -> Preferences/Options and click the button to remove your authentication token.
  3. Close Thunderbird
  4. Find your Thunderbird Profile Folder
  5. Go to the Extensions folder and then the gcontactsync at pirules.net folder
  6. Open the content folder
  7. Edit gdata.js with your favorite text editor
  8. Find this text shown below around line 50 and replace accountType=GOOGLE with accountType=HOSTED_OR_GOOGLE
  9. Save the file and re-open Thunderbird and the Address Book window
  10. Login
  makeAuthBody: function(aEmail, aPassword) {
    return "accountType=GOOGLE&Email=" + aEmail + "&Passwd=" + aPassword +

August 6, 2008 - Posted by | Uncategorized | , ,


  1. Josh,

    The tweak worked as I was able to populate an empty Google Apps for Your Domain contact list with over 300 contacts from one of my T-bird address books. I then changed some stuff in my T-bird contacts and re-synced – the changes made it up to my Google contacts! Pretty sweet – I had been looking for something like this for over a year. Hope you continue working on it.

    Comment by bobwool | August 6, 2008 | Reply

  2. I’m glad to hear that it worked, thanks for letting me know!

    Comment by pi | August 6, 2008 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: