Thunderbird shows bogus Sender header
TB 78.6.1 on macOS 11.1.
Whenever I view a message for which Thunderbird shows a Sender header in preview or message view, from that moment it shows that exact Sender header on all message views/previews.
Right after the start of Thunderbird, it's O.K, i.e. it doesn't show a Sender header. Then I view a message from a mailing list for which Thunderbird thinks it has to show a Sender header (the -bounces address) from the Sender header in the mail. O.K. for that specific address it's correct.
Now if I view any other email in the same folder, other folder, or other mail account it always shows that exact Sender header from that mailing list. It always shows that header, regardless of whether the shown message does have a sender header or not.
Until I view another mailing list email for which Thunderbind thinks it has to show the Sender header. Now the header shown changes to the new Sender header of that mail and from then on it always shows that Sender header.
I have only noticed this on some mailing list emails, not on all. It doesn't show the Sender header (or changes the shown header) on all mailing list emails, but only on some, even though all those mails contain a Sender header.
So basically: occasionally TB thinks it has to show the Sender header. When it does, it shows that Sender header on all emails until I view a different email for which it thinks it has to show the Sender header.
At the moment, it's unclear to me when TB thinks it has to show the Sender header. It's for some mailing lists but not for all even though most mailing lists do have a Sender header.
But worse: once it shows a Sender header that "sticks" in the view until it changes or you restart TB.
Zgjidhje e zgjedhur
Krejt Përgjigjet (5)
I know a couple of people having the same problem. TB on Mac and on Windows.
No one else noticed this?
Does anybody know when exactly the "Sender" header is shown? It's only under some circumstances which are not clear to me. Looking at the headers of various mailing lists e-mails, some of which show the header, others don't, there doesn't seem to be any clear pattern. I looked at From, To, Sender, Return-Path headers.
From the source code I have found here https://searchfox.org/comm-central/source/mail/base/content/msgHdrView.js I have verified that the From and Sender header in all those mails are different each time, but again, only for some of those the Sender header is shown.
O.K. Going through the debugger I think I found at least the reason why the sender header is shown in the first place even when mailnews.headers.showSender is false: for SMIME mails it shows the sender header if the signer doesn't match the from header.
That's mentioned in the comment in msgHdrViewSMIMEOverlay.js line 310, function onSMIMEBeforeShowHeaderPane().
However, despite what's mentioned in the comment, that removal there doesn't seem to work: the Sender header won't be removed from the visible headers once shown.
Zgjidhja e Zgjedhur
Marking the last response as a "solution" as it makes the topic available to Google and other search engines.