Pi’s Blog

My blog about Thunderbird and GSoC 2008

E-mail Addresses With Special Characters

I wanted to test some Unicode characters to see if they would sync properly.  So, I made up an e-mail address: üḯǟôÕ@host.com.  The e-mail address synced without any error messages, but when I tried to edit the contact in Gmail I was given the following error: “Please enter a valid email address.”

So, while gContactSync and Thunderbird fully support Unicode, it appears that Google supports Unicode in every field except for email.

June 26, 2008 Posted by pi | GSOC | , , | No Comments Yet

Progress Update

L10n (Localization) Support

I finished adding support for localization to the extension.  It previously used l10n for the XUL files, but I just finished localizing strings in the scripts.  If you or somebody you know would like to help translate this extension please let me know.

Contact Conversion Rewrite

I completely re-wrote the methods that convert contacts from Google Contacts to Thunderbird Address Book cards and vice versa and went from nearly 700 lines of code to just under 275 (with comments).  To do so, I defined an object that stores Thunderbird’s name for the property (like DisplayName), and information on how Google stores the contact data in Atom/XML (the namespace, tag name, whether the data is stored in an attribute or in the child node, and more).

As of now, the supported attributes in Thunderbird include:

DisplayName, Notes, PrimaryEmail, SecondEmail, CellularNumber, HomePhone, WorkPhone, PagerNumber, FaxNumber, HomeAddress, WorkAddress, _AimScreenName, Company, and JobTitle

Possible Name

I finally decided on a possible name that some initial searching on Google tells me is unique: gContactSync.  Any feedback on the name is welcome and I’ll gladly change it if I find a better name.

Preferences

I removed the need for the “shortDelay” preference.

June 26, 2008 Posted by pi | GSOC | , , , , | No Comments Yet