Closed Bug 1735731 Opened 3 years ago Closed 3 years ago

Non-standard alias "koi8r" for "KOI8-R" is not supported

Categories

(Thunderbird :: General, enhancement)

enhancement

Tracking

(thunderbird_esr91+ fixed, thunderbird94+ fixed)

RESOLVED FIXED
95 Branch
Tracking Status
thunderbird_esr91 + fixed
thunderbird94 + fixed

People

(Reporter: lrn1986, Assigned: mkmelin)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

Received an email with non-standard MIME encoding "koi8r" (note the lack of "-" between "8" and "r"; this alias is not listed in IANA, the only alias for KOI8-R that IANA allows is "cskoi8r", if i remember correctly)

Actual results:

The headers of the message were not decoded correctly. Instead of seeing the sender name, the subject line or the name of an attachment in the message list and the message view panel, i see things like "=?koi8r?B?" followed by a string of ASCII characters.

Expected results:

The headers of the message should have been decoded correctly.

I do realize that the sender of this message uses non-standard name for a standard KOI8-R MIME text encoding, and that the sender is at fault here. However, i have failed to convince the sender that this is a bug worth fixing, so the emails will keep coming in this broken form for the foreseeable future. Which is why i'm asking Thunderbird developers to add a new alias for this encoding to maintain compatibility. For this reason I'm classifying this as a "request for enhancement" rather than a "defect report".

FWIW, the sending party uses Microsoft Exchange.

If there's an extension that already exists and can fix this for me (by changing encoding name in emails automatically), please tell me, i'm willing to accept that and consider the problem solved.

Probably we could add this to https://searchfox.org/comm-central/source/mailnews/intl/charsetalias.properties
Can you create a patch? Or at least attach a sample .eml?

Here's a sample email.

I can't make a patch because i currently don't have a PC suited for doing software development.

Assignee: nobody → mkmelin+mozilla

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0742b56bf6c1
add koi8r=KOI8-R charset alias. r=freaktechnik

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

For the attachment filename encoding, that is not a valid way to encode those, so that part is not fixable.

Component: Untriaged → General
Target Milestone: --- → 95 Branch

Comment on attachment 9246099 [details]
Bug 1735731 - add koi8r=KOI8-R charset alias. r=freaktechnik

[Approval Request Comment]
User impact if declined: messages with non-standard charset koi8r can't be viewed properly
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): super safe

Attachment #9246099 - Flags: approval-comm-esr91?
Attachment #9246099 - Flags: approval-comm-beta?

Comment on attachment 9246099 [details]
Bug 1735731 - add koi8r=KOI8-R charset alias. r=freaktechnik

[Triage Comment]
Approved for beta

Attachment #9246099 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9246099 [details]
Bug 1735731 - add koi8r=KOI8-R charset alias. r=freaktechnik

[Triage Comment]
approved for esr91

Attachment #9246099 - Flags: approval-comm-esr91? → approval-comm-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: