{"id":10,"date":"2008-04-25T11:47:07","date_gmt":"2008-04-25T11:47:07","guid":{"rendered":"http:\/\/ccgi.standard8.plus.com\/blog\/archives\/10"},"modified":"2017-08-15T22:19:40","modified_gmt":"2017-08-15T21:19:40","slug":"address-book-status-at-thunderbird-30-alpha-1","status":"publish","type":"post","link":"https:\/\/thebanners.uk\/standard8\/2008\/04\/25\/address-book-status-at-thunderbird-30-alpha-1\/","title":{"rendered":"Address Book Status at Thunderbird 3.0 Alpha 1"},"content":{"rendered":"<p>Now that Thunderbird is in <a href=\"http:\/\/wiki.mozilla.org\/Thunderbird:Thunderbird_3.0a1\" title=\"Thunderbird 3.0 alpha 1 wiki page\">3.0 Alpha 1 Code Freeze<\/a>, I want to point out some of the changes since Thunderbird 2 to the Address Book back-end code and where it is likely to be going post-Alpha 1.<\/p>\n<p>First, though, for all of those wanting to see improvements to the UI &#8211; we are starting to <a href=\"http:\/\/groups.google.com\/group\/mozilla.dev.apps.thunderbird\/browse_thread\/thread\/56b70f0758cd5caa#\">discuss<\/a> these in more detail (keep an eye on the <a href=\"http:\/\/groups.google.com\/group\/mozilla.dev.apps.thunderbird\/topics\" title=\"mozilla.dev.apps.thunderbird newsgroup\">newsgroups<\/a>), and are planning for them to be included Thunderbird 3.0 &#8211; the back-end improvements have currently taken priority as they will give us a much better basis for us to improve the UI.<\/p>\n<p>So what are the main changes so far in the address book between Thunderbird 2.0 and Thunderbird 3.0alpha1?<\/p>\n<p><!--more--><a href=\"http:\/\/mxr.mozilla.org\/mozilla1.8\/source\/mailnews\/addrbook\/public\/nsIAddrBookSession.idl\"><\/a><\/p>\n<p><a href=\"http:\/\/mxr.mozilla.org\/mozilla1.8\/source\/mailnews\/addrbook\/public\/nsIAddrBookSession.idl\"><\/a><\/p>\n<ul>\n<li><a href=\"http:\/\/mxr.mozilla.org\/mozilla1.8\/source\/mailnews\/addrbook\/public\/nsIAddrBookSession.idl\">nsIAddrBookSession.idl<\/a> and <a href=\"http:\/\/mxr.mozilla.org\/mozilla1.8\/source\/mailnews\/addrbook\/public\/nsIAddressBook.idl\">nsIAddressBook.idl<\/a> have been replaced by <a href=\"http:\/\/mxr.mozilla.org\/seamonkey\/source\/mailnews\/addrbook\/public\/nsIAbManager.idl\" title=\"nsIAbManager.idl in mxr\">nsIAbManager.idl<\/a>\n<ul>\n<li>nsIAbManager is a service, and consoldates the two sets of interfaces into one, providing a more central and logical place for Address Book level functions.<\/li>\n<li>There is now a .directories attribute and a getDirectory function. These are intended to replace the need to get the directories from the rdf service.<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/bonsai.mozilla.org\/cvsblame.cgi?file=\/mozilla\/mailnews\/addrbook\/public\/nsIAbDirectory.idl&amp;rev=1.32&amp;mark=50-64#50\" title=\"nsIAbDirectoryProperties in bonsai\">nsIAbDirectoryProperties<\/a> has been removed.\n<ul>\n<li>The properties of the address books that these were used to represent can now be found on the various nsIAb*Directory implementations. This provides much simpler ways of accessing these attributes.<\/li>\n<\/ul>\n<\/li>\n<li>Various string and wstring attributes\/parameters have been replaced with nsACString or nsAString\n<ul>\n<li>These were part of a larger string API and back-end tidy up in mailnews.<\/li>\n<\/ul>\n<\/li>\n<li>The various LDAP read\/search implementations have had the authentication code replaced by a common implementation.\n<ul>\n<li>This fixed various authentication bugs, including allowing download for offline use for uses that are required to log in on LDAP servers.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>This is only a subset of changes that have gone into the address book, there have been various other back-end fixes, and many improvements resulting in a code size reduction (about 4000 lines\/10% reduced on a raw line count of mailnews\/addrbook\/src &#8211; yes I know there&#8217;s better ways).<\/p>\n<p><strong>What&#8217;s coming next?<\/strong><\/p>\n<p>There are several large items coming soon, it is difficult to determine the exact time scales, but I&#8217;d hope that most of this first list are implemented in time for Thunderbird 3.0 Alpha 2:<\/p>\n<ul>\n<li>Fixing the listener architecture so that mailing list updates work correctly (<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=406921\" title=\"Bug 406921\">bug 406921<\/a>).<\/li>\n<li>Refactoring of the address book interfaces (I&#8217;ll cover this in another post later).<\/li>\n<li>Final removal of nsISupportsArray from the address book interfaces, except for autocomplete (<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=410177\" title=\"b410177\" name=\"b410177\">bug 410177<\/a>).<\/li>\n<\/ul>\n<p>On top of that lot, I&#8217;m looking to get the following items completed before Thunderbird 3.0 final:<\/p>\n<ul>\n<li>\u00a0Remove RDF from the address book (<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=422845\" title=\"b422845\" name=\"b422845\">bug 422845<\/a>).\n<ul>\n<li>As a result of this, we&#8217;ll be able to redo how the preferences back-end is currently handled, removing some awkward code.<\/li>\n<\/ul>\n<\/li>\n<li>Improve interfaces for extensions.<\/li>\n<li>Complete implementation of writable LDAP directories (<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=86405\" title=\"Bug 86405\">bug 86405<\/a>).<\/li>\n<\/ul>\n<p>and probably a few more.<\/p>\n<p>There&#8217;s a lot there, what I am hoping to do is to start stabilising the Address Book interfaces as soon as possible, to make it easier for extensions to update less times. Keep watching and I&#8217;ll keep you all updated as to how we are doing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that Thunderbird is in 3.0 Alpha 1 Code Freeze, I want to point out some of the changes since Thunderbird 2 to the Address Book back-end code and where it is likely to be going post-Alpha 1. First, though, for all of those wanting to see improvements to the UI &#8211; we are starting &hellip; <a href=\"https:\/\/thebanners.uk\/standard8\/2008\/04\/25\/address-book-status-at-thunderbird-30-alpha-1\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Address Book Status at Thunderbird 3.0 Alpha 1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,8],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-mozilla","category-seamonkey","category-thunderbird"],"_links":{"self":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":698,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/posts\/10\/revisions\/698"}],"wp:attachment":[{"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebanners.uk\/standard8\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}