Closed Bug 77903 Opened 24 years ago Closed 11 years ago

If Body MIME present, no Headers MIME and folder MIME override is not on -> use body MIME to display Headers.

Categories

(MailNews Core :: Internationalization, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: alexeyc2003, Unassigned)

References

Details

(Keywords: intl, testcase, Whiteboard: intl)

Attachments

(6 files)

This is spawned from bug 75506 to mirror the same fix for other areas of message composition that need it. I believe same character encoding logic as in bug 75506 should be used in: 1. "Author wrote:" line in message body when you "Reply" to an e-mail. At the moment folder character coding is used for Author's name there. 2. Reply-To: field in message Composition when you "Edit Message As New". I'm not sure what encoding it is using there at the moment. These are just 2 examples I noticed, maybe there are more places like this. this can be tested on the same testcase as before: http://bugzilla.mozilla.org/showattachment.cgi?attach_id=30702 Great work on bug 75506! Mozilla is now a bit more pleasurable to use. :o)
Keywords: intl, mozilla0.9.1
Oh and how could I forget! Same should be applied to all fields in Header display in message view. At the moment it uses folder encoding when none is specified in message header fields. This is for both, "Normal" header view and minimised header view. And for "All" whenever it will be implemented.
For problem 2, bug 41009 has been filed.
Send mail charset problem is reported in bug #53634
We don't guess (i.e. auto detect) for headers. It's too expensive and may not get correct result anyway with a small amout of characters used in headers. Currently, it's only used for non labeled attachments.
nhotta, I didn't mean guessing as in implementing AI for it. What I meant is putting the same algorithm you used for bug 75506 in a few other similar places that need it. I certainly didn't mean guessing encoding for message body when it is absent. What I meant was, if encoding is given for the body, but not for Header fields like Subject: From: To: Reply-To: and so on. bug 53634 and bug 41009 are absolutely different from this. If I'm not mistaken, they are dealing with auto-detecting encoding of the body. This bug is about guessing encoding of other message headers when body encoding is known. Exactly the same as bug 75506, but for rest of the places that need it. Sorry, for not making it clear enough. I will attach a few screenshots to show what I am talking about.
Attached file testcase
Attached image Reply to Sender
Attached image Edit Message as New
In "Reply to Sender" screenshot you can see the fix for bug 75506 working inside To: field. The fields marked with red need the same kind of treatment.
Keywords: testcase
Thanks for the screenshots, now we understand when you talked out. We need this bug to address the problems in Normal header view, compact header and author in reply mail body. Naoki, do you need seperate bugs for those? The problem for "Edit as New" is already in 41009.
I can reproduce the problem in compact header view, but I can't reproduce it on Normal header view and the author problem in reply mail body. After I set the folder charset to KOI8-R, those places are displayed correctly.
I've read though bug 41009 and I don't see it addressing this problem. It addresses cases when Header MIME is correct, but Body MIME is missing or incorrect. This bug is opposite of that. Correct Body MIME with missing Header MIME. In bug 41009: * See screenshot attached. * Read Katsuhiko Momoi's comments from 2000-08-10 * Read Katsuhiko Momoi's description of attachments on 2000-08-13 I used Western ISO-8859-1 folder encoding to demonstrate Headers and Author reply effect. I just think when displaying that, message body encoding should have priority over folder encoding. See comments nhotta made in bug 75506 on 2001-04-13 I liked that algorithm very much. :o) I do know this can be fixed with setting folder encoding. But I must admit I have used Mozilla for half a year without even knowing about that feature. I am coming from a user point of view here. It's better when it just works, than when you have to do somethting for it to work, especially when you are unaware what can be done to fix that.
In previous comment I was referring to nhotta's comments in bug 75506 from: 2001-04-13 13:58
Yes, that's right. 41009 is about mail body with no or wrong charset lable. I remember there is a bug about header somewhere.
Bug 66098 is filed to use folder charset for headers which has no or wrong charset label, although it's originally filed for reply msg.
Changing Summary to be more specific: Old Summary: Need to guess right character encoding for message Header fields when not specified New Summary: If Body MIME present, no Headers MIME and folder MIME override is not on -> use body MIME to display Headers. At the moment, if Headers don't have MIME, folder MIME is used even if Body has MIME specified. To reproduce: 1. In "View -> Folder Character Coding" Set folder encoding to Western (ISO-8859-1) and disable "Apply default to all messages (ignore charset specified by MIME header)" 2. View attached testcase. You will see that message body is correctly displayed using KOI8-R encoding, but Headers are displayed using ISO-8859-1. 3. Go to "View -> Character Coding", notice that KOI8-R is selected in there. 4. Click on KOI8-R anyways. You will now see Header display change to KOI8-R and display messages correctly. I think, if the message Body uses encoding for display, Headers with no MIME should be displayed using the same encoding, unless folder encoding override is not on. I think the behaviour shown in above 1-4 steps should be used only when folder encoding override is set. See previously provided screenshots for areas that are affected by this. Adding one more screenshot. I think bug 66098 is probably a subset of this bug.
Summary: Need to guess right character encoding for message Header fields when not specified → If Body MIME present, no Headers MIME and folder MIME override is not on -> use body MIME to display Headers.
oops, in previous comment I meant: "if the message Body uses encoding for display, Headers with no MIME should be displayed using the same encoding, unless folder encoding override is ON."
Attached image Threadpane
OS: Windows 2000 → All
Hardware: PC → All
Status: NEW → ASSIGNED
Target Milestone: --- → Future
bug 80942 seems to be related.
oops sorry pasted wrong bug number. I meant bug 71541.
*** Bug 97314 has been marked as a duplicate of this bug. ***
Keywords: mozilla1.0
The fix should also consider the case when the mail doesn't contain charset info either in mail body or header. In this case, when auto-detector is turned on, the charset sniffed by auto-detector should be passed to the header display. For the details of the discussion, please see bug 97314.
When trying to forward a malformed message, Message Compose succeeded in displaying the subject correctly, despite failing to set the correct default character set...
*** Bug 109867 has been marked as a duplicate of this bug. ***
*** Bug 168488 has been marked as a duplicate of this bug. ***
Product: MailNews → Core
Using Thunderbird version 1.0.7 (20050923) in slovene version of Windows 98, the folder character set is not applied to messaged with UNKNOWN. Only when I check to override message settings can I get the folder character set on subject and from-columns in the folder list, but I need several charsets so I'd be very happy if this bug could be solved. I agree with Alexey and I will vote for this bug.
The problem in comment 1 & (especially) comment 18 (which is where this bug morphed away from the symptoms in comment 0) is bug 90584. I recommend duping this one to that one. Don't mark a dupe in the other direction, as that bug has a little bit of traction towards gettings solved.
Product: Core → MailNews Core
QA Contact: ji → i18n
Assignee: nhottanscp → nobody
Status: ASSIGNED → NEW
Whiteboard: intl
So the rules for JSMime are that the body charset is used as fallback for the headers if UTF-8 doesn't work, which is AFAICT what this bug asks. I see no reason to change libmime (which I think already largely supports this feature, except in cases where the body charset is overridden by late information, i.e., <meta charset=> or charset autodetection, both of which should hopefully be dieing out anyways).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: