Closed
Bug 3979
Opened 26 years ago
Closed 25 years ago
[BETA] Mail- Content-Type: charset of reply and forward is always us-ascii
Categories
(MailNews Core :: Internationalization, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M14
People
(Reporter: nhottanscp, Assigned: rhp)
References
Details
Content-Type: charset of the original message should be used.
Assign to me (for now).
Reporter | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M5
Updated•26 years ago
|
Summary: Content-Type: charset of reply and forward is always us-ascii → Mail- Content-Type: charset of reply and forward is always us-ascii
Reporter | ||
Comment 1•25 years ago
|
||
Requested bienvenue@netscape.com to add charset name support to nsIMessage.
Reporter | ||
Comment 2•25 years ago
|
||
Requested bienvenu@netscape.com to add charset name support to nsIMessage.
Comment 3•25 years ago
|
||
I've added it, but there's no code that sets it to anything other than the empty
string. I'm drowning in IMAP and will be until after M6.
Reporter | ||
Comment 4•25 years ago
|
||
Changed to use the new code. Use the value when the string is not empty.
Reporter | ||
Updated•25 years ago
|
Target Milestone: M5 → M6
Reporter | ||
Comment 5•25 years ago
|
||
Moving to M6, this will not work until nsIMessage change.
Reporter | ||
Updated•25 years ago
|
Assignee: nhotta → bienvenu
Status: ASSIGNED → NEW
Reporter | ||
Comment 6•25 years ago
|
||
Reassinging to bienvenu@netscape.com.
Updated•25 years ago
|
Target Milestone: M6 → M7
Comment 7•25 years ago
|
||
What more do you want me to do? I've added the methods to nsIMessage. I'm
guessing you want me to parse every message for its content type and set the
field appropriately. This is of course impossible for IMAP and News...didn't we
used to rely on libmime having parsed the message in the past?
Reporter | ||
Updated•25 years ago
|
Assignee: bienvenu → phil
Reporter | ||
Comment 8•25 years ago
|
||
Reassinging to phil@netscape.com.
I don't know who is responsible for reply implementation.
Updated•25 years ago
|
Assignee: phil → rhp
Comment 9•25 years ago
|
||
Reassigning to rhp
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Updated•25 years ago
|
Whiteboard: DEPEND - Intl
Reporter | ||
Comment 10•25 years ago
|
||
*** Bug 6995 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•25 years ago
|
Target Milestone: M7 → M8
Assignee | ||
Comment 11•25 years ago
|
||
Will look at for M8.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M8 → M9
Assignee | ||
Comment 12•25 years ago
|
||
Naoki,
How should this work? Should I just set the charset of the reply to the same
charset of the replied to message? This seems like we could have problems doing
that, but just guessing here.
- rhp
Reporter | ||
Comment 13•25 years ago
|
||
For reply and forward, the charset of the original message main body should be
used.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M9 → M10
Assignee | ||
Comment 14•25 years ago
|
||
Won't get to this before tonight...kind of a tough problem.
- rhp
Comment 15•25 years ago
|
||
Naoki, As a temporary improvement, can we just omit the charset parameter
in the headers for replies and forwards until we get this fixed?
Reporter | ||
Comment 16•25 years ago
|
||
It is not usual to send messages without Content-type charset.
I don't think we get workaround by sending without charset, do we?
Comment 17•25 years ago
|
||
Rich, are you proposing to omit the charset parameter from all parts including the 1st of the multi-part bodies?
If so, that wouldn't be a good idea,
Assignee | ||
Comment 18•25 years ago
|
||
I'm not suggesting we change anything...I just latered the bug because this is
not a trivial fix and then bobj and naoki had the other comments.
- rhp
Comment 19•25 years ago
|
||
Sorry, Rich. My question should have been aimed at bobj.
Reporter | ||
Comment 20•25 years ago
|
||
I talked to bobj and momoi, bob's suggestion depended the charset override
feature which is not working yet (5938). So we should not omit a charset label
from reply.
Comment 21•25 years ago
|
||
Does our 4.x product do what's being suggested here; i.e. use the charset from
the message being replied to, rather than the charset of the author of the
reply.
Effectively, I'm asking whether this is an RFE or a regression.
Reporter | ||
Updated•25 years ago
|
Whiteboard: DEPEND - Intl
Reporter | ||
Comment 22•25 years ago
|
||
I don't know about 'RFE' but this is not a regression of 4.x.
I think 4.x depended on the charset menu selection to decide the charset of
sending out messages.
But this is needed for 5.0.
In 4.x, reply/forward quoted message cound not be displayed unless the charset
menu is set properly.
5.0 uses Content-type charset and usually the user doesn't have to set charset
menu for viewing. Reply/forward also does not require to set charset menu for
viewing/editing but sending out message needs to specify a charset. For initial
charset for reply/forward, it is appropriate to use the charset of the original
message than the current charset menu selection.
I assume confusions if we rely on the menu selection for reply/forward charset
(e.g. sending out with a wrong charset by accident and the receiver cannot see
the message at all).
BTW, there is also a bug of no menu check mark.
Updated•25 years ago
|
Target Milestone: M10 → M13
Comment 23•25 years ago
|
||
Well, two thoughts:
> For initial charset for reply/forward, it is appropriate to use the charset of
> the original message than the current charset menu selection.
I don't understand this. If the reply isn't in the same character set as the
original message, it seems like the charset on the reply is wrong -- i.e.
doesn't reflect the data which is actually in the message.
Second, Rich tells me that changing the MIME parser so that we have the original
character set hanging around in memory is a major change. It's not likely we'll
attempt that before he returns, if at all. TFV -> M13.
Reporter | ||
Comment 24•25 years ago
|
||
>I don't understand this. If the reply isn't in the same character set as the
>original message, it seems like the charset on the reply is wrong -- i.e.
>doesn't reflect the data which is actually in the message.
That case (e.g. replying to French message by Japanese), it is users
responsibility to reset the charset. There is also a risk that the original
message may not be mapped to the sending charset if sending out as different
charset than original unless send as unicode (e.g. UTF-8). For that, we're
planning for replacing those unmapped characters as entities (but that's for
HTML only).
Assignee | ||
Comment 25•25 years ago
|
||
I'll investigate further when time allows.
- rhp
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13 → M14
Summary: Mail- Content-Type: charset of reply and forward is always us-ascii → [BETA] Mail- Content-Type: charset of reply and forward is always us-ascii
Comment 26•25 years ago
|
||
If there's an i18n interop issue here, we should look at it for B1.
Assignee | ||
Comment 27•25 years ago
|
||
For reply we do, but not for forward.
- rhp
Reporter | ||
Comment 28•25 years ago
|
||
So, how much extra work needed or performance increase for getting Content-Type
of the main body in case of we're not quoting?
Assignee | ||
Comment 29•25 years ago
|
||
this is a test
Assignee | ||
Comment 30•25 years ago
|
||
Hello,
I have an idea how to fix this problem, but I need to understand one thing. Do
we need to use the charset of the mail message, or the part that is displayed
as the primary body part. Please tell me the first one :-) Also, I could use a
message that has a non us-ascii charset for the top level mail message itself.
Can you post an example I can work from.
Thanks!
- rhp
Assignee | ||
Comment 31•25 years ago
|
||
Finally, after putting my brain into this one, I think I have it fixed. Now,
when you reply to a non US-ASCII email, you will reply in that charset.
Forwarding INLINE also has this same behavior, but if you forward as an
attachment, I do not do this. The reason is that the attachment is an
encapsulated message/rfc822 message that should render properly since it has
all of the appropriate charset information inside of the message structure.
I will check this in when the tree opens for M14.
- rhp
Summary: [BETA] Mail- Content-Type: charset of reply and forward is always us-ascii → [FIXED] [BETA] Mail- Content-Type: charset of reply and forward is always us-ascii
Comment 32•25 years ago
|
||
Does this do something like:
1. For single part msg --> relfect the content-type charset info.
2. For multi-part msg --> reflect first body par charset
for reply/forward inline?
Assignee | ||
Comment 33•25 years ago
|
||
Not currently. This increases the complexity to have to determine the type of
message and decend to the main body part to pull out the charset. Is is this
the right thing to do???
- rhp
Comment 34•25 years ago
|
||
For multi-part, if you are not descending into the body to get the reply/forward-inline charset,
where do you get the charset info?
Assignee | ||
Comment 35•25 years ago
|
||
I get it from the RFC822 message header. If one isn't specified it will default
to the users default settings.
- rhp
Comment 36•25 years ago
|
||
Rich, I remember discussing some of this with nhotta. The spec has been
published to this page:
http://www.mozilla.org/projects/intl/mail-news-i18n-spec.html
"Charset of the original message (main body) is used." for charset for reply/forward mail.
Naoki argued above also that we should not use the default charset set by the user if
there is a charset info already in the mail. We would not go crazy like descending into 2nd, 3rd parts
for multi-part msgs. The 1st (main) part should be sufficient.
Thus, falling back to user's default fro multi-art is not what the spec would call for.
Could we wait until Monday when Naoki is back to settle this? I'm working on Messenger
charset menu related specs and some of them may have bearing on this issue.
Assignee | ||
Comment 37•25 years ago
|
||
This makes sense. I will see if I can handle this situation...I have some ideas
how to make this happen.
- rhp
Assignee | ||
Comment 38•25 years ago
|
||
Good news. I think after some more hacking that I am able to decend into the
body part of a multipart/ message and get the charset to be used for replies
and forwards.
We'll need more testing, but so far, I think this is working.
- rhp
Assignee | ||
Comment 39•25 years ago
|
||
Just checked in the fix for this problem.
- rhp
Summary: [FIXED] [BETA] Mail- Content-Type: charset of reply and forward is always us-ascii → [BETA] Mail- Content-Type: charset of reply and forward is always us-ascii
Assignee | ||
Comment 40•25 years ago
|
||
Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 41•25 years ago
|
||
I'm in the process of looking at this fix. It's going to take a bit of time for
we need to cover a variety of cases.
There seems to be one problem now. On our smoketest mailbox, the 1st msg is
Latin 1 but using HTML entities and so marked as US-ASCII. The last msg is in UTF-8
and marked as so. These two will not go out reflecting the original charset label
if you have the following setting in prefs.js.
user_pref("intl.character_set_name", "iso-2022-jp");
I tried, Trad. Chinese (Big5), Simplified Chinese (gb2312), Korean (EUC-KR),
Czech (ISO-8859-2), Russian (KOI8-R), and they are OK even with the above setting.
Naoki, the above is not the mail default setting, is it? Could you remind me what the mail default
setting formual is? I'll also try that later.
Reporter | ||
Comment 42•25 years ago
|
||
Momoi san, your setting for the mail send default charset is correct.
And that setting should not affect the behavior of reply/forward charset
setting.
Comment 43•25 years ago
|
||
I should add that when you remove: user_pref("intl.character_set_name", "iso-2022-jp");
reply msgs work as intended by this fix.
By the way, forward/inline seems to have this problem with the above special setting.
Comment 44•25 years ago
|
||
Correction: "By the way, forward/inline seems to have this problem with the above special setting."
to: By the way, forward/inline DOES NOT seem to have this problem with the above special setting.
Comment 45•25 years ago
|
||
Re-opening it since there is a limited but nonetheless real problem with some
msg charset headers when the mail default charset setting exists in prefs.js.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 46•25 years ago
|
||
Ok, here is the problem. We make a call to nsMsgI18NGetDefaultMailCharset() in
the compose back end when we create a message. This is the charset we will use
unless there is a non us-ascii specified charset on the mail message. If we
have a non-usascii, it shows up on the content type of the quoting operation,
but other than that, we don't see any and we don't change it.
I'm looking to see where exactly that is stripped off the line.
- rhp
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 47•25 years ago
|
||
I have a fix that Naoki is reviewing.
- rhp
Assignee | ||
Comment 48•25 years ago
|
||
Ok, I think I have a fix for this one now. Will try to get checked in tonight.
- rhp
Comment 49•25 years ago
|
||
Due to Beta indication in Summary, putting beta1 into keyword field.
Keywords: beta1
Assignee | ||
Comment 50•25 years ago
|
||
Checked in this fix today.
- rhp
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 51•25 years ago
|
||
Half-way through. So far tried replying to some 16 different
language msgs with some charset buried in the main body part.
Also tried the problem ones with default charset set to ISO-2022-JP.
So far none failed. I will move on to forard/inline to finish
the verification.
Comment 52•25 years ago
|
||
At this point, I cannot verifyu this until Bug 28055 is fixed.
Comment 53•25 years ago
|
||
** Checked with 2/21/2000 Win32 build **
This feature is working very well with the above build.
I checked with some 17 different charsets -- some in
single part msgs and others in the first part of
multipart msgs. We are now able to reflect the original
charset regardless of the mail-send default charset setting
with all these test msgs.
This is in accord with our current spec.
Marking it verified/fixed.
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•