Closed Bug 1845155 Opened 2 years ago Closed 1 years ago

In News, "RE: " is not replaced by "Re: " any more, broken via NNTP-JS

Categories

(MailNews Core :: Networking: NNTP, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102 wontfix, thunderbird_esr115? fixed, thunderbird118 wontfix)

RESOLVED FIXED
119 Branch
Tracking Status
thunderbird_esr102 --- wontfix
thunderbird_esr115 ? fixed
thunderbird118 --- wontfix

People

(Reporter: betterbird.project+7, Assigned: welpy-cw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

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

Steps to reproduce:

Previously done here:
https://searchfox.org/comm-esr102/search?q=NS_MsgStripRE&path=nsNNTPNewsgroupList.cpp&case=false&regexp=false

We'll post a patch

Assignee: nobody → h.w.forms
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: regression
Regressed by: nntp-js
Target Milestone: --- → 119 Branch

... just returns "chrome://messenger-region/locale/region.properties" when the user hasn't edited the preference.

Good catch. This should be localised by the localisers, see here for example:
https://hg.mozilla.org/projects/comm-l10n/file/tip/de/mail/chrome/messenger-region/region.properties#l29
Usually users don't edit the pref unless they are multi-lingual.

Admittedly, the C++ code is more careful:
https://searchfox.org/comm-central/rev/570e29bd6159a910d43fc0e4f8fedfffb9357f6a/mailnews/base/src/nsMsgUtils.cpp#535

Are you sure that getComplexValue() ... .data always returns a string even if the locale is misconfigured? No null or undefined possible? In our opinion if (rawPrefixes.length) { was the safer bet.

No, just if (rawPrefixes) {.

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/0946cce6a08d
Strip localized Re: prefixes in NNTP messages. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED

Comment on attachment 9352204 [details]
Bug 1845155 - Strip localized Re: prefixes in NNTP messages. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): nntp-js
User impact if declined: Localized Re: prefixes aren't handled correctly in Usenet messages.
Testing completed (on c-c, etc.): c-c and beta
Risk to taking this patch (and alternatives if risky): low

Attachment #9352204 - Flags: approval-comm-esr115?

Comment on attachment 9352204 [details]
Bug 1845155 - Strip localized Re: prefixes in NNTP messages. r=mkmelin

[Triage Comment]
Approved for esr115

Attachment #9352204 - Flags: approval-comm-esr115? → approval-comm-esr115+
Duplicate of this bug: 1789890
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: