Open Bug 943821 Opened 12 years ago Updated 3 months ago

Cannot prevent address book's display name from appearing in To-header of composed email.

Categories

(MailNews Core :: Composition, enhancement)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: martinr1111, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release) Build ID: 20131115110315 Steps to reproduce: When composing a message to a recipient that is chosen from your address book, the address book's display name is used in the To: header of the composed message. Actual results: The display name is sent to the email recipient. Expected results: Because the display name is being used for local display and can contain private connotations, it is unwanted to use the display name in message composition.
The "To" header is technically used to deliver the email with, so it has to contain a correct email address. It is however possible to annotate the "To" header with a human readable name (i.e. the nickname). Depending on the recipients email client, this annotation can be shown or not. The current Thunderbird (24.0.1) automatically annotates the email address in the to field during message composition with the display name that is found in the address book. This behavior is unwanted, because private connotations to the display name are exposed to the email recipient. Which can be offensive to the recipient. For example, you might have two contacts in your address book named "Al". To separate the two email addresses visually (for Al Yankovic for example), you might set the display name to "Weird Al". You might not want Al to receive your email with the offensive heading: "Weird Al". Preferably the full name (i.e. Al Yankovic) should be used instead. Could it be made configurable if the To: header is annotated and with what it will be annotated with First name and/or Last name or Nick name?
It is not a good idea to use the same field for both Display Name and the key whereby the user finds the e-mail address, for the above given reasons. Since I do not want any Display Name at all in messages that I write, I leave the field "Name" empty, and go by only "Nickname" to find e-mail addresses, although that is not as convenient as using the field which is the key. There is a further reason for detaching the twain: suppose one has correspondents John Brown and John Brown, with, of course distinct e-mail addresses. One would want the very same Display Name for both--and that would not serve for a good key.
(In reply to marty from comment #1) > The current Thunderbird (24.0.1) automatically annotates the email address in the to field during message composition > with the display name that is found in the address book. If Display name in mail composition, it's never "Display name which was found". It's Display name of a contact which you requested to use during mail composition. Address book entry. Contact #1 : Nick name = zzzz, Email = aaa@xxx.yyy.zzz, Display Name = null Contact #2 : Nick name = zzzz, Email = aaa@xxx.yyy.zzz, Display Name = Xaaa Yaaa Contact #3 : Nick name = zzzz, Email = Aaa@Xxx.Yyy.Zzz, Display Name = XXXaaa YYYYaaa If you choose Contact #1, To: aaa@xxx.yyy.zzz, if you choose Contact #2, To: Xaaa Yaaa <aaa@xxx.yyy.zzz>, is set respectively. > Actual results: > The display name is sent to the email recipient. "Display"(display name) field of Contact in Addres Book is for "First Last" part of "First Last <a@b.c.d>" of To:/CC:/BCC: header. So, it's used in To:/CC:/BCC:. If Display name in message display by following option, Tools/Option/Advanced/Reading&Display, Display , [ x ] Show only display name ... Address booc, Contact's property, [ x ] Always prefer display name ... it's "Display name which was found". If you change display name of above contacts, you can see which contact's display name is being used by Tb. I don't know Tb's address book search algorithm when a mail address is defined in Email field/Addtional email field of multiple Contacts/Lists in multiple address books. (I think first defined entry==entry of lowest internal key in an address book is used. I don't know about order of address book) Is this bug enhancement request for "option or button or menu to include/don't include display name" in mail composing/sending?
(In reply to WADA from comment #3) > Is this bug enhancement request for "option or button or menu to > include/don't include display name" in mail composing/sending? Yes, it is a request to prevent the address book's display name from appearing in the To-header of a composed email.
Below is a proposed solution to the problem. One should make a global option to prevent any display names from appearing in the To-field. Additionally one could add a checkbox per address book entry to add the display name to the To-field. Furthermore one could also create an additional menu option in the email composition window to prevent or add the display name from being appended to the the To-field of the email message.
In my version, 31.6, I find that I can by means of Nickname match from an Address Book that has no Display Names at all. If that is the intended effect, then maybe there is no reason to change anything, only to advise that Display Name not be used, only Nickname. It may be disconcerting that the partly matched Nickname is not shown, only the e-mail address: if, say, the Nickname is "qqj" and the e-mail address "i@c.me" and one enters "qq" and it is distinctive, the full "qqj" is not shown, although the e-mail address "i@c.me" indeed is.
Severity: normal → enhancement
Hardware: x86 → All
Our implementation of AB-based display names certainly still has room for improvement and comes with usability problems. For addressing new compositions (Write button), I believe we are fine: User can add nickname in nickname field which is used for searching, but will not be sent with the msg. But this bug points out another potential problem: What if user wants friendly display names in *message reader*, but there are two different people with same name? But at the same time, user wouldn't want his friendly names to be sent with the message? We don't offer that. Anything which you need in message reader to tell people apart can only be added to display name, which currently implies using that for sending scenarios, too. Not to mention other problems like we're only showing friendly display names in msg reader by default but you can't search on them using quick filter (existing bug). I vaguely recall there used to be a contact property called "screen name" which might have been exactly for that purpose of having visible distinctions in message reader which will NOT be used as a display name for sending. But it's gone now; perhaps it was considered to complicated, or the person who removed it did not understand the feature, or it wasn't well-implemented and thus removed... Indeed the distinction between display name (for sending) and screen name (mostly for message reader, perhaps for composition time, too, but never for sending) might be too tricky for average users.
Also, current trunk seems to act different for replies wrt to replies to known/unknown addresses. Don't have time for the details...
(In reply to Thomas D. from comment #8) > Also, current trunk seems to act different for replies wrt to replies to > known/unknown addresses. Don't have time for the details... 40.0a1 (2015-04-15)
I think Display name is intended to be sent out with the email. Can you use some other field in the contact to store the private remarks about the user? If you need the remarks for recipient autocomplete, e.g. nickname is also searched. Or you can modify the pref mail.addr_book.autocompletequery.format to add new fields of your choosing.
(In reply to :aceman from comment #10) > I think Display name is intended to be sent out with the email. Can you use > some other field in the contact to store the private remarks about the user? > If you need the remarks for recipient autocomplete, e.g. nickname is also > searched. Or you can modify the pref mail.addr_book.autocompletequery.format > to add new fields of your choosing. hsv from comment #2 is correct in stating: "There is a further reason for detaching the twain: suppose one has correspondents John Brown and John Brown, with, of course distinct e-mail addresses. One would want the very same Display Name for both--and that would not serve for a good key." If you would have read the bug report carefully, then you would have read in comment #1: "For example, you might have two contacts in your address book named "Al". To separate the two email addresses visually (for Al Yankovic for example), you might set the display name to "Weird Al". You might not want Al to receive your email with the offensive heading: "Weird Al". Preferably the full name (i.e. Al Yankovic) should be used instead." You are incorrect in assuming that the display name's primary use is for autocompletion. The display name is used to distinguish between two different persons with the same name, therefore it is named display name. The display name is a local and private connotation, that should not be added to the TO: field (as it is currently)!
Severity: normal → S3
Component: Untriaged → Composition
Product: Thunderbird → MailNews Core
You need to log in before you can comment on or make changes to this bug.