Ed Mullen wrote:
What determines the list order when beginning to type an email address?

The address book autocomplete code [1]. The algorithm first sorts by
address book card (contact) popularity and then full address,
alphabetically. The popularity is increased every time you send a mail to that contact [2].

I migrated my SM 1.x profile when installing SM 2.0a2. Auto fill works but the order is totally different from what it is in SM 1.x.

It might be relevant to which SM version you refer to here. SM 1.0.x might not have had the popularity feature which is part of the address book; I didn't check that, though.

Is there a way to change the order of the addresses that are presented?

Given the above I'd say your options are...
a) send more mails to certain contacts
a2) hack the address books and change the PopularityIndex yourself
b) change the contact's name to be listed first (the values compared to
each other are of the form "name <address>" [3])

[1]
<http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbAutoCompleteSearch.js#184>
[2]
<http://mxr.mozilla.org/comm-central/source/mailnews/compose/src/nsMsgCompose.cpp#4651>
[3]
<http://mxr.mozilla.org/comm-central/source/mailnews/mime/public/nsIMsgHeaderParser.idl#154>

HTH

Jens

P.S.: I asked the address book developer on IRC. Contrary to popular
belief I don't know /all/ the answers myself. ;-)

--
Jens Hatlak <http://jens.hatlak.de/>
SeaMonkey Trunk Tracker <http://smtt.blogspot.com/>
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to