Extension Update
Refactoring
Since the last update, I have finished refactoring all of my code except for the code that converts contacts from one format to the other to make it more object-oriented.
Bug 413260
I have applied the most recent patch in Bug 413260, which, among many other things, removes specific attributes from nsIAbCard and uses a hash table to store attributes. Since custom attributes can be added and retrieved easily and quickly, I have started synchronizing more information. From now on, the extension will depend on bug 413260, thus Thunderbird 3.0a2pre and above. There will be more changes in that bug, and I will adapt my extension to each new patch.
Synchronized Attributes
- Name
- The first four e-mail addresses (of any type). Only the first two are shown in Thunderbird, for now.
- The first mobile, home, work, pager, and both home and work fax number. Home fax number is not displayed in Thunderbird.
- The first screenname of each type (Google Talk, AIM, MSN, ICQ, Jabber, and Yahoo). Only AIM screennames are shown in Thunderbird.
- The first home, work, and other address. The other address is not displayed in TB.
- Job Title
- Organization
- Notes
Thunderbird
- Display Name
- Home: Address, Address Line 2, City, State, Zip, and Country
- Work: Address, Address Line 2, City, State, Zip, and Country
- AimScreenName (_AimScreenName)
- Work, Home, Pager, Cellular, and fax number (fax number is set as work fax when syncing)
- Primary and second/additional email
- Notes
Possible Future Additions
I may add my own instantiation of nsIAbDirectory, as suggested by my mentor. This would bring several advantages in the future.
I will probably add an overlay to the card view to show some attributes that gContactSync adds (such as additional e-mail addresses and screen name types).
Questions for potential users
- Would the ability to sync photos be useful?
- Approximately how many contacts would you sync?
- What else would you like synced?
- Are there any attributes you would like added to the Thunderbird Address Book?
- Do you use lists in Thunderbird? Groups in Gmail?
July 7, 2008 - Posted by pi | GSOC | attributes, bug 413260, gcontactsync, nsiabdirectory, overlay, properties, refactor | No Comments Yet
No comments yet.
Leave a comment
About
Hello, everybody
My name is Josh and my application to Google Summer of Code 2008 was accepted, so this summer I will be writing the extension (explained below) writing some basic unit tests for Thunderbird 3’s code for importing address books, and finding/repairing some simple bugs. I like to program, obviously, and my major is Computer Engineering, which is a mix of Computer Science (programming, among other things) and Electrical Engineering.
My homepage can be found here, although I am still not done moving content over from my old site.
My GSoC project involves syncing contacts between Google Contacts and Thunderbird’s Address Book. Right now I am writing it for Thunderbird 2 and 3. Right now it is able to do a pretty good job of syncing, but there are a few rough edges in the code that I would like to fix.
You can usually find me hanging out in Mozilla’s IRC in the #maildev channel as pi.
-
Recent Posts
Tags
address address book attributes birthday bug bug 413260 bug 437556 bug 439819 bugzilla contacts conversion download day fieldMap firefox gcontacts gcontactsync gcontactsync 2 gentoo gmail contacts google contacts groups GSOC im import l10n lastmodifieddate ldif localization mail lists offline support pim postal address preferences properties saxparseexception sync synchronize test thunderbird thunderbird 2 thunderbird 3 thunderbird address book unicode unit test xmlhttprequest-
Recent Comments
Valeryan_24 on Duplicate contacts in Thunderb… pi on gContactSync Updates Alan on gContactSync Updates Ilaria on Duplicate contacts in Thunderb… Nadya Fermega on Happy Pi Day – New Websi…
-
Archives
- June 2009 (1)
- May 2009 (3)
- April 2009 (3)
- March 2009 (4)
- February 2009 (3)
- January 2009 (3)
- November 2008 (1)
- October 2008 (2)
- September 2008 (1)
- August 2008 (14)
- July 2008 (14)
- June 2008 (9)
-
Categories
-
RSS
Entries RSS
Comments RSS