Comment 2 for bug 956618

Revision history for this message
In , Brian-atkins (brian-atkins) wrote :

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Thunderbird 1.5

I have an address book entry with the nickname "wil". When I type "wil" in the To line in the composition window, the result is an entry who's last name is "Wilbur" and which has no nickname at all.

The algorithm for finding addresses in the phone book should have the highest precedence on a full string match of nickname (after all, why did the user take the time to enter a nick name after all"). Imho, the precedence should be:

1) Full string match on nickname
2) Full string match on last name
3) Full string match on first name
4) Initial string match on nickname
5) Initial string match on last name
6) Initial string match on first name

You may not think this is important, but anything that causes mail to get sent to the wrong user inadvertantly is just about he worst possible problem a mailer can have.

Reproducible: Always

Steps to Reproduce:
1. Create an entry with "wil" as the nickname
2. Create an entry with Wilber as the last name
3. Enter "wil" in the To: field of the composition window

Actual Results:
The entry with the last name Wilbur is autocompleted

Expected Results:
The entry with the nickname "wil" should have been autocompleted

I entered this defect before, and have seen others report it. However, I searched Bugzilla and, searching for "nickname", did not find it. I apologize if this is duplicate, but after about 30min searching, I couldn't find the old bug.