Changes

Jump to: navigation, search

User talk:Standard8

1,460 bytes added, 11:58, 10 May 2006
Add some thoughts on what to do about address book migration.
== Address Book Migration ==
 
With the current work in address book to try and make it more pluggable, easier to work with, and the hopeful removal of nsDirPrefs we need to replace the existing address book migration code with something better.
 
The existing migration code is contained in two places:
 
* [http://lxr.mozilla.org/mozilla/source/mailnews/addrbook/src/nsDirPrefs.cpp#1956 nsDirPrefs.cpp DIR_GetServerPreferences]
* [http://lxr.mozilla.org/mozilla/source/mailnews/addrbook/src/nsLDAPPrefsService.js#121 nsLDAPPrefsService.js migratePrefsIfNeeded]
 
Currently the migration code is actually capable of the following:
 
* migration of ldap ab preferences from 4.0 to 4.5
* migration of ldap ab preferences from 4.5 to Mozilla.
 
It can cope with normal ab preferences, however, as 4.5 used the closed na2 format, we aren't able to migrate that and no one has stepped up to write something suitable.
 
It is all based around the DIR_Server that we would really like to get rid of. This all brings the following questions:
 
* Where should migration code exist?
** Should it be with the nsIAb*Directory or nsIAb*DirectoryFactory code?
** Should the existing items be consolidated into one location or split?
* How will this affect future migration code writing if they are necessary?
** This may be required if we change the setup of ab prefs.
* Should we be calling a general nsIAb*Directory or nsIAb*DirectoryFactory migrate function on startup anyway?
 
== Drag n Drop in Address book ==
Canmove, confirm, emeritus
3,627
edits

Navigation menu