Open Bug 1743363 Opened 3 years ago Updated 1 year ago

"reply-to" confusingly isn't displayed when it's identical to "to"

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: bert, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce:

Write an email where "to" and "reply-to" are identical and send it off.

Actual results:

When checking said email in sent items, the "reply-to" is missing (only "from" and "to" are visible), even though "reply-to" is there in the headers.

Expected results:

"reply" to should be displayed the way it is when it's not identical to "to"

Component: Untriaged → Message Compose Window

Confirmed.

Status: UNCONFIRMED → NEW
Component: Message Compose Window → Mail Window Front End
Ever confirmed: true

I can reproduce using 91.2.3 on Fedora 34 Workstation.

Is it supposed to appear in the received email? Doesn't for me.
Not that I would want to receive an email from another person and reply to myself.

TEST:
Windows 10
Thunderbird version 91.3.2

Create email where Reply-to and To are same email address - altered the 'display name' so I could tell difference.
Use 'Send'
View Received email in Inbox.
View > Headers - Normal
The 'To' field is displayed. No mention of 'Reply-to' in normal header.

View > Headers > All
The 'To' field is displayed. No mention of 'Reply-to' in full display of headers.

Click on 'More' > View source
To and 'Reply-to' are in the header source.

click on 'Reply':
result the 'TO' field is empty.
Assumed you would not reply to self.


Go to the 'Sent' folder to see the 'sent copy' and perform same action on selected email.
View > Headers - Normal
The 'To' field is displayed. No mention of 'Reply-to' in normal header.

View > Headers > All
The 'To' field is displayed. No mention of 'Reply-to' in full display of headers.

Click on 'More' > View source
To and 'Reply-to' are in the header source.

Now click on 'Reply'
This time the 'TO' field contains the info as supplied in the 'Reply-to' field because the From is different from the TO and REply-to.

New TEST:
Set where Cc is same as 'Reply-to' and TO is different.
Sent copy and received email show all data, TO, Cc and REply-to in both Normal and Full headers. OK

When using 'Reply' or 'Reply-all' only the TO field is completed with the 'Reply-to' email address.
So the Cc is not in the TO field if same as 'Reply-to'

Select 'Sent copy'
If select 'Reply' only the 'Reply-to' email address is in 'To' field.
If select 'REply-all' both 'Reply-to' and 'To' are inserted in TO field and the Cc is not in the TO field if same as 'Reply-to' nor is the FROM - I assume because a 'REply-to' exists, but this then means if a Reply-to then REply-all never includes FROM.

Difference: if 'Reply-to' is same email address as Cc, then all headers in Normal or All mode display all the headers - FROm, TO, Reply-to and Cc

Status: NEW → UNCONFIRMED
Component: Mail Window Front End → Message Compose Window
Ever confirmed: false

I'm somewhat confused why "Message Compose Window" is the marked component here. The problem isn't part of the email composing step, but in displaying emails.

For example:

From: Bert Van de Poel <bert@bhack.net>
To: bert@ulyssis.org
Reply-To: bert@ulyssis.org
Subject: test
Message-ID: <e4282505-5f52-fd3f-619d-cdc51b202e76@bhack.net>
Date: Wed, 1 Dec 2021 15:49:41 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.14.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: nl-BE

test

Is displayed as shown in the attachment.

Generally, people may send to others and include a Cc to oneself for personal record even though there is a record in the 'Sent' folder. But for those situations all is ok.
It is an unusual method to send to oneself and also set up a reply-to oneself - same email address. But perhaps the user could have entered several email addresses in a TO field including to self of same 'Reply-to email address. You can understand that senario occuring if you are wanting to keep a sent record on a different mail account.
But, when I test that senario, I do not get the error.

I can only reproduce if there is one email in a TO field and it is identical to the 'Reply-to' email. You can add other email addresses in a eg: Cc field and still get same problem. But it is an unusual situation.
Whatever the reason, the 'Reply-to' is not shown, so bug exists under those conditions.

https://searchfox.org/comm-central/rev/d76107d796479ddf6c6c33057e63de932bb2e716/mail/base/content/msgHdrView.js#741

// We don't need to show the reply-to header if its value is either
// the From field (totally pointless) or the To field (common for
// mailing lists, but not that useful).

https://searchfox.org/comm-central/rev/d76107d796479ddf6c6c33057e63de932bb2e716/mail/base/content/msgHdrView.js#759

if (replyToMailbox == fromMailboxes || replyToMailbox == toMailboxes) {
  delete currentHeaderData["reply-to"];
}

So the behavior is absolutely intentional (Bug 499180).

Regressed by: 499180

It is an unusual method to send to oneself and also set up a reply-to oneself - same email address.

My use case is automated TODO emails. I have a cron job that send me periodic emails to do assorted stuff. And it sets the Reply-To field to me also, so if I get something partially done and want to make a note of where I left off, I can just reply (to myself) with that note, instead of replying to the email address of the system user that ran the cron job. I agree that it's unusual, but it was surprising that the Reply-To was ignored.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: