Open Bug 1939667 Opened 2 months ago Updated 2 months ago

Default email address does not come up as first option when creating email

Categories

(Thunderbird :: Untriaged, defect)

Thunderbird 128
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: eberger, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

Start typing a recipient name in the To field. The recipient has two addresses in my address book. I have marked his gmail address as the default. His other address is sbcglobal.

Actual results:

The default address only comes up first if I enter the recipient's second name first. If I begin by typing his first name first, then the default shows second in the list. His first name is Brad and his second name begins with C. I have attached images.

Expected results:

The default address should always appear first in the drop down list. I found this problem listed 9 years ago and marked solved at the time.

Results are sorted according to popularity first. I assume you had previously sent mails more frequently to the second address.

https://searchfox.org/comm-central/rev/d898076e89dd7a0481fa9b0ad8d9348c17496b8e/mailnews/addrbook/src/AbAutoCompleteSearch.sys.mjs#500

I've just tested tihs in version 128.5.2esr

I have a contact with two email addresses.
One of which I always use and it is selected as default.

In Write - I type first part of the 'Display name' which also appears in part of both email addresses and I'm offered the one I normally select and which is default. That name I type is first name not surname.

Test:
Opened Contact to Edit.
Selected the second email address - set as default - Save
Opened a new Write and typed same name - I'm offered the newly selected default option first in list.
So my usual normal selection was not at the top of drop down options - it used the setting selected as 'default'.

I'm not able to reproduce.

But you say

The default address only comes up first if I enter the recipient's second name first.

In Address book, I have the list of contacts using 'Table Layout' and 'Last, First' setting. So the 'Name' column has surname first.
I have also typed first name into the 'Display name' option.

Are you using the same settings ?
What settings are you using?

Flags: needinfo?(eberger)

(In reply to Magnus Melin [:mkmelin] from comment #1)

Results are sorted according to popularity first. I assume you had previously sent mails more frequently to the second address.

https://searchfox.org/comm-central/rev/d898076e89dd7a0481fa9b0ad8d9348c17496b8e/mailnews/addrbook/src/AbAutoCompleteSearch.sys.mjs#500

You are correct. However, that does not answer why when I type his last name it correctly picks the default (gmail address) but does not when I type his first. Changing the default address has no effect.

I did try entering a new name such as Boy Cale and with that name setting default works properly.

So, if you are correct it sounds like the code should be changed. Why would you want to override the default selection based on which address has been most used in the past? It sounds like that would only be a sensible choice if no default selection was checked.

Flags: needinfo?(eberger)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: