Open Bug 129020 Opened 22 years ago Updated 2 years ago

When windows-1255 email is replied as both plaint text and html, the plain text is encoded incorrectly

Categories

(MailNews Core :: MIME, defect)

defect

Tracking

(Not tracked)

People

(Reporter: xslf, Unassigned)

References

Details

(Keywords: intl)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.8+) Gecko/20020301
BuildID:    2002030108

got an HTML email i windows-1255. Replayed, and chose to send as both HTMl and
plain text. HTMl got sent Ok, but the plain text was declared as being base 64
encoded, althugh it actually got encoded in 8bit. since the email as sent to a
list mirored on the web, the mail displayed incorrectly.

Reproducible: Always
Steps to Reproduce:
1. repaly to an html windows email as both html and plain text
2. look at the headers
3.

Actual Results:  the plain text version is marked as base 64 but actually
encoded in 8bit

Expected Results:  the plain text should be marked correctly

sample headers:
From - Mon Mar  4 14:40:12 2002
X-UIDL: 69312685e2d293912ed0bfa22fe78cbc
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
X-Apparently-To: xslf@yahoo.com via web11204; 04 Mar 2002 05:33:51 -0800 (PST)
X-Track: 1: 40
Return-Path: <sitebuilders@takilla.com>
Received: from 209.88.196.22  (EHLO idefix.yedidia.net) (209.88.196.22)
  by mta501.mail.yahoo.com with SMTP; 04 Mar 2002 05:33:50 -0800 (PST)
Received: (from majordomo@localhost)
	by idefix.yedidia.net (8.11.0/8.11.0) id g24DbYf03387
	for sitebuilders-list; Mon, 4 Mar 2002 15:37:34 +0200
X-Authentication-Warning: idefix.yedidia.net: majordomo set sender to
sitebuilders@takilla.com using -f
Received: from smtp012.mail.yahoo.com (smtp012.mail.yahoo.com [216.136.173.32])
	by idefix.yedidia.net (8.11.0/8.11.0) with SMTP id g24DbWn03383
	for <sitebuilders@takilla.com>; Mon, 4 Mar 2002 15:37:32 +0200
Received: from xslf (AUTH plain) at unknown (HELO yahoo.com) (xslf@193.106.171.3)
  by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Mar 2002 13:30:57 -0000
Message-ID: <3C837720.9030907@yahoo.com>
Date: Mon, 04 Mar 2002 14:31:12 +0100
From: Shoshannah Forbes <xslf@yahoo.com>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.8+) Gecko/20020301
X-Accept-Language: en-us, he
MIME-Version: 1.0
To: SB Forum <sitebuilders@takilla.com>
Subject: Re: Fw: =?windows-1255?Q?=E4=F8=F6=FA_=E0=FA=F8_=E7=E3=F9=2E?=
 =?windows-1255?Q?=2E=2E?=
References: <004e01c1c297$005e12e0$347424d5@xslf>
Content-Type: multipart/alternative;
 boundary="------------020409020900070206030207"
Sender: sitebuilders@takilla.com
Precedence: first-class
Reply-To: sitebuilders@takilla.com


--------------020409020900070206030207
Content-Type: text/plain; charset=windows-1255; format=flowed
Content-Transfer-Encoding: base64

נבדק עם מוזילה בילד אחרון על מקינטוש בעל מערכת הפעלה 9.2.2:
* הצבע הסגול של הכפתורים על מעבר עכבר מכוער בטירוף...
*  למה כל הטקסט הוא בבולד?
* למה לחיצה על מספר במפה לא עושה כלום? למה אני חייבת להשתמש ברשימה?
* העברית בדף התודה על שליחת טופס מופיעה הפוך.  הסיבה: הוא נמצא בתוך תג 
המגדיר אותו כעברית לגית, למרות שהוא ויזואלית. למה באמת האתר בויזואלית?

Xslf wrote:

> >
> ----- Original Message -----
> *From:* WWWML - צבתות זה אני <mailto:sbforum@typo.co.il>
>
> *To:* sitebuilders@takilla.com <mailto:sitebuilders@takilla.com>
>
> *Sent:* Saturday, March 02, 2002 6:27 PM
>
> *Subject:* הרצת אתר חדש...
>
>
> &#65533;ההודעה <http://forums.mishkei.org.il/view.cgi/6/?id=666&mid=1313c468>
> נכתבה ע"י צבתות זה אני <mailto:elad@tabak.co.il> ונשלחה מפורום בוני 
> האתרים החופשיים <http://forums.mishkei.org.il/view.cgi/6/?id=666> .
>
> אני הולך להריץ בימים הקרובים אתר חדש, והייתי רוצה לדעת אם יש לכם 
> ביקורת לגביו. בעיקר לגבי הטופס,  והשימוש בכפתורים, כפי שנאמר פה קודם 
> שהייתה בעיה.
> ובכלל מה דעתכם.
> > תודה,
> צבתות
>
>
> *קישורים:*
> http://www.khamsa.co.il
>


--------------020409020900070206030207
Content-Type: text/html; charset=windows-1255
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
=F0=E1=E3=F7 =F2=ED =EE=E5=E6=E9=EC=E4 =E1=E9=EC=E3 =E0=E7=F8=E5=EF =F2=EC=
 =EE=F7=E9=F0=E8=E5=F9 =E1=F2=EC =EE=F2=F8=EB=FA =E4=F4=F2=EC=E4 9.2.2:<b=
r>
* =E4=F6=E1=F2 =E4=F1=E2=E5=EC =F9=EC =E4=EB=F4=FA=E5=F8=E9=ED =F2=EC =EE=
=F2=E1=F8 =F2=EB=E1=F8 =EE=EB=E5=F2=F8 =E1=E8=E9=F8=E5=F3...<br>
* =A0=EC=EE=E4 =EB=EC =E4=E8=F7=F1=E8 =E4=E5=E0 =E1=E1=E5=EC=E3?<br>
* =EC=EE=E4 =EC=E7=E9=F6=E4 =F2=EC =EE=F1=F4=F8 =E1=EE=F4=E4 =EC=E0 =F2=E5=
=F9=E4 =EB=EC=E5=ED? =EC=EE=E4 =E0=F0=E9 =E7=E9=E9=E1=FA =EC=E4=F9=FA=EE=F9=
 =E1=F8=F9=E9=EE=E4?<br>
* =E4=F2=E1=F8=E9=FA =E1=E3=F3 =E4=FA=E5=E3=E4 =F2=EC =F9=EC=E9=E7=FA =E8=
=E5=F4=F1 =EE=E5=F4=E9=F2=E4 =E4=F4=E5=EA. =A0=E4=F1=E9=E1=E4: =E4=E5=E0 =
=F0=EE=F6=E0 =E1=FA=E5=EA =FA=E2 =E4=EE=E2=E3=E9=F8
=E0=E5=FA=E5 =EB=F2=E1=F8=E9=FA =EC=E2=E9=FA, =EC=EE=F8=E5=FA =F9=E4=E5=E0=
 =E5=E9=E6=E5=E0=EC=E9=FA. =EC=EE=E4 =E1=E0=EE=FA =E4=E0=FA=F8 =E1=E5=E9=E6=
=E5=E0=EC=E9=FA?<br>
<br>
Xslf wrote:<br>
<blockquote type=3D"cite" cite=3D"mid004e01c1c297$005e12e0$347424d5@xslf"=
> =20
  <meta http-equiv=3D"Content-type" content=3D"text/html; ">
=20
  <style type=3D"text/css">BODY {
	COLOR: black; FONT-FAMILY: sans-serif; BACKGROUND-COLOR: white
}
PRE {
	MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
=2EleftQuote {
	PADDING-LEFT: 1em; MARGIN-LEFT: 0.5em; BORDER-LEFT: solid; COLOR: #88000=
0
}
=2ErightQuote {
	BORDER-RIGHT: solid; PADDING-RIGHT: 1em; COLOR: #880000; MARGIN-RIGHT: 0=
=2E5em
}
=2ErightQuote .rightQuote {
	COLOR: #008080
}
=2ErightQuote .rightQuote .rightQuote {
	COLOR: purple
}
=2ErightQuote .rightQuote .rightQuote .rightQuote {
	COLOR: #0033cc
}
=2ErightQuote .rightQuote .rightQuote .rightQuote .rightQuote {
	COLOR: brown
}
=2ErightQuote .rightQuote .rightQuote .rightQuote .rightQuote .rightQuote=
 {
	COLOR: #336699
}
=2EleftQuote .leftQuote {
	COLOR: #008080
}
=2EleftQuote .leftQuote .leftQuote {
	COLOR: purple
}
=2EleftQuote .leftQuote .leftQuote .leftQuote {
	COLOR: #0033cc
}
=2EleftQuote .leftQuote .leftQuote .leftQuote .leftQuote {
	COLOR: brown
}
=2EleftQuote .leftQuote .leftQuote .leftQuote .leftQuote .leftQuote {
	COLOR: #336699
}
=2EsubMessagesHeader {
	BACKGROUND-COLOR: #e0e0e0
}
=2Eheaderdiv {
	MARGIN-BOTTOM: 0.5em; PADDING-BOTTOM: 0.6em; BORDER-BOTTOM: black 1px da=
shed
}
  </style> =20
  <meta content=3D"MSHTML 6.00.2600.0" name=3D"GENERATOR">
=20
  <div>=A0</div>
=20
  <div
 style=3D"font-family: arial; font-style: normal; font-variant: normal; f=
ont-weight: normal; font-size: 10pt; line-height: normal; font-stretch: n=
ormal; font-size-adjust: none;">
----- Original Message ----- =20
  <div style=3D"background: rgb(228,228,228) none repeat scroll 0%;"><b>F=
rom:</b>
<a title=3D"sbforum@typo.co.il" href=3D"mailto:sbforum@typo.co.il">WWWML=
 - =F6=E1=FA=E5=FA
=E6=E4  =E0=F0=E9</a> </div>
=20
  <div><b>To:</b> <a title=3D"sitebuilders@takilla.com"
 href=3D"mailto:sitebuilders@takilla.com">sitebuilders@takilla.com</a> </=
div>
=20
  <div><b>Sent:</b> Saturday, March 02, 2002 6:27 PM</div>
=20
  <div><b>Subject:</b> =E4=F8=F6=FA =E0=FA=F8 =E7=E3=F9...</div>
</div>
=20
  <div><br>
</div>
<font size=3D"2">=20
  <div class=3D"headerdiv" dir=3D"rtl">=FE<a
 href=3D"http://forums.mishkei.org.il/view.cgi/6/?id=3D666&amp;mid=3D1313=
c468">=E4=E4=E5=E3=F2=E4</a>
=F0=EB=FA=E1=E4 =F2"=E9 <a href=3D"mailto:elad@tabak.co.il">=F6=E1=FA=E5=
=FA =E6=E4 =E0=F0=E9</a> =E5=F0=F9=EC=E7=E4 =EE=F4=E5=F8=E5=ED
  <a href=3D"http://forums.mishkei.org.il/view.cgi/6/?id=3D666">=E1=E5=F0=
=E9 =E4=E0=FA=F8=E9=ED =E4=E7=E5=F4=F9=E9=E9=ED</a>
=2E  <br>
</div>
=20
  <div dir=3D"rtl" align=3D"right">=E0=F0=E9 =E4=E5=EC=EA =EC=E4=F8=E9=F5=
 =E1=E9=EE=E9=ED =E4=F7=F8=E5=E1=E9=ED =E0=FA=F8 =E7=E3=F9, =E5=E4=E9=E9=FA=
=E9
=F8=E5=F6=E4 =EC=E3=F2=FA  =E0=ED =E9=F9 =EC=EB=ED =E1=E9=F7=E5=F8=FA =EC=
=E2=E1=E9=E5. =E1=F2=E9=F7=F8 =EC=E2=E1=E9 =E4=E8=E5=F4=F1,=A0 =E5=E4=F9=E9=
=EE=E5=F9 =E1=EB=F4=FA=E5=F8=E9=ED, =EB=F4=E9
=F9=F0=E0=EE=F8 =F4=E4  =F7=E5=E3=ED =F9=E4=E9=E9=FA=E4 =E1=F2=E9=E4.<br>=

=E5=E1=EB=EC=EC =EE=E4 =E3=F2=FA=EB=ED.<br>
=A0<br>
=FA=E5=E3=E4,<br>
=F6=E1=FA=E5=FA</div>
=20
  <div dir=3D"rtl"><br>
<b>=F7=E9=F9=E5=F8=E9=ED:</b><br>
<a href=3D"http://www.khamsa.co.il"><span dir=3D"ltr">http://www.khamsa=
=2Eco.il</span></a>
</div>
</font></blockquote>
<br>
</body>
</html>

--------------020409020900070206030207--


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

see also here:
http://www.typo.co.il/~sbforum/MESSAGES/get.cgi/%3C3C837720.9030907%40yahoo.com%3E/source.eml
This is more a MIME encoder issue than a Bidi issue.

Mozilla uses automatic switch between QP and Base 64 when
the QP encoding option is chosen. The algorithm seems to 
depend on the amount of character data involved in encoding. 
But apparently when that swicth over occurs to B64, the
plain tesxt body does not get convered to B64 if you choose
both plain text and HTML option. It seems like some broken 
data (maybe Unicode) goes out instead.

Re-assigning to ducarroz and CC'ing intl people. 
This migh happen with other encodings. Try other 8-bit encodings
and follow xlsf's steps making sure that the text amount is 
more than a few lines -- overy 50 at least.

I was able to to reproduce this problem under Windows-1255 encoding.
Component: BiDi Hebrew & Arabic → MIME
QA Contact: giladehven → ji
This time definitely sending it over to J-F.
Once again to J-F.
Assignee: mkaply → ducarroz
> But apparently when that swicth over occurs to B64, the
> plain tesxt body does not get convered to B64 if you choose
> both plain text and HTML option. It seems like some broken 
> data (maybe Unicode) goes out instead.

I guess no conversion occurs even though it is labeled as
B64 as xlsf says. So the data is in Windows-1255.
if it goes no convertion, is it really windows 1255? After all, it was written
on a mac with a mac hebrew.
> if it goes no convertion, is it really windows 1255? 
> After all, it was written on a mac with a mac hebrew.

No conversion to B64, that is. Since your data display as Hebrew
under Win-1255, would you check to see if it is not Win-1255 
indeed? 

The composer internally uses Unicode and so whatever
it ouputs should be the target mail send encoding. If you chose
Win-1255 as the send encoding, it should be that or Unicode if some
process is broken. 
Even though the input occurs through MacHebrew, once it 
is committed to Composer, we should be dealing with Unicode 
from then on until it is ouput to the Internet.
> if it goes no convertion, is it really windows 1255? 
> After all, it was written on a mac with a mac hebrew.

The code points of the Hebrew consonants, at least, are the same in windows-1255
and MacHebrew.

http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/HEBREW.TXT
http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1255.TXT
Keywords: intl
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1beta
This bug is targeted at a Mac classic platform/OS, which is no longer supported
by mozilla.org. Please re-target it to another platform/OS if this bug applies
there as well or resolve this bug.

I will resolve this bug as WONTFIX in four weeks if no action has been taken.
To filter this and similar messages out, please filter for "mac_cla_reorg".
Shosh, do you still see this bug in current versions of Mozilla (using OS X)?

Prog.
Summary: When windows-1255 email is replayed as both plaint text and html, the plain text is encoded incorrectly → When windows-1255 email is replied as both plaint text and html, the plain text is encoded incorrectly
Product: MailNews → Core
No response from Reporter (or anyone else).

-> WONTFIX (per comment 8)
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
This is reproducible on suite 1.7. I'll check the trunk later. Probably, there's
another bug on the same issue, in which case this should be resolved as a dupe.
That'll be checked, too.
Status: RESOLVED → REOPENED
OS: Mac System 9.x → All
Hardware: Macintosh → All
Resolution: WONTFIX → ---
Target Milestone: mozilla1.1beta → mozilla1.8beta
Assignee: ducarroz → nobody
Status: REOPENED → NEW
QA Contact: ji → mime
Product: Core → MailNews Core
Target Milestone: mozilla1.8beta1 → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.