Localized RE not used in message header panel
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
People
(Reporter: rjl, Unassigned)
Details
(Keywords: dupeme)
Attachments
(2 files)
OS: Linux & macOS 10.15
Thunderbird 89.0b1
STR:
- Set
mailnews.localizedRetoXx - Restart Thunderbird (probably not necessary?)
- Send yourself an email with subject
Xx: Another bogus reply
Observed:
In the message list panel, the email subject is rewritten to Re: Another bogus reply. In the message header panel, it is displayed Xx: Another bogus reply
Expected:
Both display locations should be rewritten.
Caveat:
If the test message is OpenPGP signed, the subject in the message header panel is rewritten as expected (Xx: -> Re:).
| Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
The preference is there to detect a reply based on the prefix in the subject header. Once detected, the Ci.nsMsgMessageFlags.HasRe flag is set on the message in the database. The output is always Re:, never the localised prefix:
https://searchfox.org/comm-central/search?q=%22Re%3A+%22&path=&case=false®exp=false, for example:
https://searchfox.org/comm-central/rev/0141a51739d87d81c88b7d744084d3844ea6ef83/mail/base/content/mailCommands.js#461
The prefix can be a comma-separated list of strings to detect, so which one should the system use? Doesn't look like anything that should be implemented, or at best an enhancement.
| Reporter | ||
Comment 3•5 years ago
|
||
(In reply to José M. Muñoz from comment #2)
The prefix can be a comma-separated list of strings to detect, so which one should the system use? Doesn't look like anything that should be implemented, or at best an enhancement.
If the subject is rewritten (from Xx to Re) when displayed in the message list, shouldn't it also be rewritten in the message display panel for consistency?
Comment 4•5 years ago
|
||
Oops, sorry, my apologies, I didn't read this properly. Yes, the message list shows the replacement, Re:, that comes from the database where the subject is stored without the prefix. The header pane shows the original prefix from the message header, unless, as you pointed out, OpenPGP overwrites this here (no warranty):
https://searchfox.org/comm-central/rev/343b0f067aa13526b37b3254f614d1bfe9feeba2/mail/extensions/openpgp/content/ui/enigmailMsgHdrViewOverlay.js#876
Yes, it's a valid bug, for consistency the same prefix should be shown everywhere.
Description
•