Open Bug 1064037 Opened 6 years ago Updated 3 years ago

Thunderbird displays wrong contact in Thread Pane and Message Pane because of "Display/Show only display name for people in my address book"

Categories

(Thunderbird :: Folder and Message Lists, defect)

31 Branch
defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: myaddons, Unassigned)

Details

Thunderbird displays the wrong contact in the Thread Pane and the Message Pane:

1) Create a contact with DisplayName A and PrimaryEmail info@example.com
2) Create a contact with DisplayName B and PrimaryEmail info@example.com
3) Create a new message using "File -> Send Later" to: A <info@example.com>
4) Create a new message using "File -> Send Later" to: B <info@example.com>
5) Open the Outbox

If "Show only display name for people in my address book" is disabled, Thunderbird correctly displays the recipient A <info@example.com> and B <info@example.com>.

If "Show only display name for people in my address book" is enabled, Thunderbird displays the recipient for both emails as "B" - which is not correct!

I've tested Thunderbird 24.8.0, 31.1.0 and 35.0a1 and they are affected by this problem.
"Show only display name for people in my address book" is currently request for :
   Ignore display name which is placed in message header such as From:, To:, CC:.,
   regardless of that display name is not written in the message header or display name is written in the message header .
   (this is feature to show any name which user wants for an email address in a mail, as known by used term of "Show only".)
   Show first-found-by-Tb display name for mail-addr=<info@example.com> of a mail.
And, "Search algorithm of multiple email-addr fields of multiple contacts in multiple address books"  is not documented, so "which  field of which contact in which address book" is all up to Thunderbird search logic of a Thunderbird build.

i.e. 
To get consistent result always with "Show only display name for people in my address book", you have to put an email address in only one place(mail address field) of multiple fields of multiple contacts in multiple address books.
This can be called "current restriction" for some users.

I think the feature is better "If no display name in message header, Show display name for people in my address book" for many general Thunderbird users.
If feature is applied to "no display name in message header" case only, known problem such as "wrong display name at Thread Pane/Header Pane, if wrong display name is written in address book by user" won't occur.

What is your expectation, or what is  CORRECT result for you, when an email-addr is written by you in multiple fields of multiple contacts of multiple address books with different display names?
(In reply to WADA from comment #1)
> What is your expectation, or what is  CORRECT result for you, when an
> email-addr is written by you in multiple fields of multiple contacts of
> multiple address books with different display names?

I personally would remove this feature completely, if it is not reliable!

And in my opinion it is not reliable, as long as it can show the wrong contact in some cases. The problem is - as you said - that multiple identical email addresses in multiple contacts in multiple address books are allowed at the moment.

(Unfortunately this feature is also enabled by default.)

However, if you want to keep this feature, I can think of a two alternatives:

1) This is what you suggest: "Only if there is no display name in the message header, show display name for people in my address book".

2) Check for the display name, too. And not only for the email address. In my example in comment #0, the two contacts could have been separated by an additional check for the display name.

Both alternatives make this feature more reliable, but do not solve the problem completely. There are still cases left, where Thunderbird could display the wrong display name.

For example: If there is only an email address in the message header and multiple contacts with this very email address in the address book. Then Thunderbird might still pick one contact, although the message is actually written by the other contact.
(In reply to Alexander Bergmann from comment #2)
> I personally would remove this feature completely, if it is not reliable!
> (Unfortunately this feature is also enabled by default.)

FYI.

This feature is unfortunately enabled by default for you, but you can completely disable the feature at any time by unchecking "Display/Show only display name for people in my address book" of Advanced/Reading&Display of preference(Tools/Options if Win).
And, if you want to disable the feature in "per contact" basis, you can uncheck "Always prefer display name over message header" of each Contact in Address Book, although default of the "Always prefer display name over message header" of each Contact is unfortunately "Checked" and, unfortunately, there is no way to change the default of it.

Please note that;
- If any data of any Contact in any your Address Book is kept consistent(no wrong addr or name)/clean(no duplicate etc.) by you,
   this feature works reliably, consistently.
- Even if you hate the feature, many general Tb users, who always keep Address Book consistent/clean, who want this feature, 
  can reliably, consistently use this feature.
Here is bugzilla.mozilla.org for developers. Please don't add "Complaint only statements". Please add comment of proposal for improvement of Tb, if current Tb's feature is not-so-good for some peoples including you.

What do you think about "What kind of changes will be better or needed for majority of Tb users"?
(In reply to WADA from comment #3)
>...
> Please add comment of proposal for improvement of Tb, if
> current Tb's feature is not-so-good for some peoples including you.
> 
> What do you think about "What kind of changes will be better or needed for
> majority of Tb users"?
Flags: needinfo?(myaddons)
(In reply to Alexander Bergmann from comment #2)
> However, if you want to keep this feature, I can think of a two alternatives:
> 
> 1) This is what you suggest: "Only if there is no display name in the
> message header, show display name for people in my address book".
> 
> 2) Check for the display name, too. And not only for the email address. In
> my example in comment #0, the two contacts could have been separated by an
> additional check for the display name.
> 
> Both alternatives make this feature more reliable, but do not solve the
> problem completely.
Flags: needinfo?(myaddons)
wontfix?
Flags: needinfo?(acelists)
Summary: Thunderbird displays wrong contact in Thread Pane and Message Pane → Thunderbird displays wrong contact in Thread Pane and Message Pane because of "Display/Show only display name for people in my address book"
I do not understand the problem.

Why do you have the same email address in your addressbook with 2 different display names? So how is the user called? I'd think displaying any one of those names, even always the B one, is correct, as B is a display name of the user.

What if you receive a faked email with "C@D <info@example.com>"? Would you want to see "C@D" only? Yeah, displaying "B" hides the fake, but at least you are not thinking the email is from the email address C@D.
Flags: needinfo?(acelists)
You need to log in before you can comment on or make changes to this bug.