Closed Bug 1676859 Opened 4 years ago Closed 4 years ago

Wrong mailing list printing output : display name is duplicate into the primary email address.

Categories

(Thunderbird :: Address Book, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird84 fixed)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird84 --- fixed

People

(Reporter: cmgaudry33, Assigned: cmgaudry33)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36

Steps to reproduce:

  • Create an address book
  • Add a new contact to this address book : set its display name and its primary email
  • Create a mailling list into this address book
  • Add the previous contact to the mailing list
  • Print the mailing list

Actual results:

The contact appears to be "DISPLAY_NAME <DISPLAY_NAMEemail>" instead of "DISPLAY_NAME <email>".

Expected results:

The actual XML output is like this

		<?xml-stylesheet type="text/css" href="chrome://messagebody/content/addressbook/print.css"?>
		<directory>
		<title xmlns="http://www.w3.org/1999/xhtml">Carnet d’adresses</title>
		<GeneratedName>
		My mailing list</GeneratedName>
		<table><tr><td><section><labelrow><label>Display Name: </label><DisplayName>My mailing list</DisplayName></labelrow><labelrow><label>Nickname: </label><NickName>my mailing list</NickName></labelrow></section></td></tr><tr><td><section></section><section><sectiontitle>Description</sectiontitle><Notes>notes</Notes></section><section><sectiontitle>Addresses</sectiontitle><PrimaryEmail>
		TRUMP Donald ( White House ) &lt;TRUMP Donald ( White House )donald.trump@whitehouse.gov&gt;</PrimaryEmail>
		<PrimaryEmail>
		BIDEN Joe ( White House ) &lt;BIDEN Joe ( White House )joe.biden@whitehouse.gov&gt;</PrimaryEmail>
		</section></td><td><section></section><section></section></td></tr></table></directory>

It should be like this :

		<?xml version="1.0"?>
		<?xml-stylesheet type="text/css" href="chrome://messagebody/content/addressbook/print.css"?>
		<directory>
		<title xmlns="http://www.w3.org/1999/xhtml">Carnet d’adresses</title>
		<GeneratedName>
		My mailing list</GeneratedName>
		<table><tr><td><section><labelrow><label>Display Name: </label><DisplayName>My mailing list</DisplayName></labelrow><labelrow><label>Nickname: </label><NickName>my mailing list</NickName></labelrow></section></td></tr><tr><td><section></section><section><sectiontitle>Description</sectiontitle><Notes>notes</Notes></section><section><sectiontitle>Addresses</sectiontitle><PrimaryEmail>
		TRUMP Donald ( White House ) &lt;donald.trump@whitehouse.gov&gt;</PrimaryEmail>
		<PrimaryEmail>
		BIDEN Joe ( White House ) &lt;joe.biden@whitehouse.gov&gt;</PrimaryEmail>
		</section></td><td><section></section><section></section></td></tr></table></directory>
Attached patch bug_1676859.diffSplinter Review

This fix can be applied to the daily version.

This should be fixed in Thunderbird 78 also.

Attachment #9187366 - Flags: review?(mkmelin+mozilla)
Assignee: nobody → chris.m.gaudry
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 9187366 [details] [diff] [review] bug_1676859.diff Review of attachment 9187366 [details] [diff] [review]: ----------------------------------------------------------------- Ah, yeah that's a bad API. r=mkmelin (You put the reviewer in the r=, not your own email)
Attachment #9187366 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → 85 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8fabcfa9fc2e
Fix Wrong mailing list printing output : display name is duplicate into the primary email address. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Comment on attachment 9187366 [details] [diff] [review] bug_1676859.diff Review of attachment 9187366 [details] [diff] [review]: ----------------------------------------------------------------- Safe to uplift.
Attachment #9187366 - Flags: approval-comm-esr78?
Attachment #9187366 - Flags: approval-comm-beta?

Comment on attachment 9187366 [details] [diff] [review]
bug_1676859.diff

[Triage Comment]
Approved for beta

Attachment #9187366 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9187366 [details] [diff] [review]
bug_1676859.diff

[Triage Comment]
Approved for esr78

Attachment #9187366 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: