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 +
             "&service=cp&source=Josh-gContactSync-0-1a1";
  },
Advertisements

August 6, 2008 Posted by | Uncategorized | , , | 2 Comments