Open Bug 1707320 Opened 5 years ago Updated 5 years ago

Localized RE not used in message header panel

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 89
defect

Tracking

(Not tracked)

People

(Reporter: rjl, Unassigned)

Details

(Keywords: dupeme)

Attachments

(2 files)

Attached image image.png —

OS: Linux & macOS 10.15
Thunderbird 89.0b1

STR:

  • Set mailnews.localizedRe to Xx
  • 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:).

Attached image image.png —
Keywords: dupeme

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&regexp=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.

(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?

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.

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

Attachment

General

Created:
Updated:
Size: