|
From: alan p. <al...@12...> - 2004-12-13 03:55:31
|
Higashiyama-san,
that seems to have worked, although I'm still seeing about 5 spaces=20
being inserted after the line-break causing the subject now to appear lik=
e:
Re: =E6=B8=AC=E7=94=A8URL =E7=99=BA=E8=A1=8C=E3=81=AE=E5=BE=A1=E9=
=A1=98=E3=81=84
Subject: Re:
=3D?ISO-2022-JP?B?GyRCQixNURsoQg=3D=3D?=3DURL
=3D?ISO-2022-JP?B?GyRCSC85VCROOGY0aiQkGyhC?=3D
instead of:
Re: =E6=B8=AC=E7=94=A8URL=E7=99=BA=E8=A1=8C=E3=81=AE=E5=BE=A1=E9=A1=98=E3=
=81=84
Subject: Re:
=3D?ISO-2022-JP?B?GyRCQixNURsoQg=3D=3D?=3DURL
=3D?ISO-2022-JP?B?GyRCSC85VCROOGY0aiQkGyhC?=3D
Thanks for your help,
alan
HIGASHIYAMA Masato wrote:
> I think that this is a bug of foldLine function in Deliver.class.php.
> It is an issue that line feed is put after =3D when a message is
> transmitted.
>=20
> Please try to test a patch of attached file.
>=20
>>I'm using SquirrelMail 1.4.3a-1 on RedHat EL 3.0 in a Japanese language
>>environment. Mostly it is working without issue, however recently one
>>of my users pointed out that their subject was munged when replying.
>>
>>this is the comment from the user: (in japanese)
>>=E4=BB=B6=E5=90=8D=E3=81=8C=E3=82=82=E3=81=A8=E3=82=82=E3=81=A8=E3=81=AF=
=E3=80=8C=E6=B8=AC=E7=94=A8URL=E7=99=BA=E8=A1=8C=E3=81=AE=E5=BE=A1=E9=A1=98=
=E3=81=84=E3=80=8D=E3=81=AA=E3=81=AE=E3=81=AB=E3=80=81=E8=BF=94=E4=BF=A1=E3=
=82=92=E3=81=99=E3=82=8B=E3=81=A8
>>=E3=81=93=E3=81=AE=E3=82=88=E3=81=86=E3=81=AB=E5=8C=96=E3=81=91=E3=81=A6=
=E3=81=97=E3=81=BE=E3=81=BE=E3=81=99=E3=80=82
>>=E3=80=8CRe: =E6=B8=AC=E7=94=A8URL=3D ?ISO-2022-JP?B?GyRCSC85VCROOGY0ai=
QkGyhC?=3D=E3=80=8D
>>
>>
>>
>>after doing some testing I've been able to reproduce a similar issue.
>>it appears that for some reason extra spaces and a carriage-return are
>>being inserted into the Subject: header. I'm not a PHP programmer, but
>>I've looked through the code and have yet to be able to determine where
>>this is happening. In my test case, I used an email with the following
>>subject:
>>
>>WEB=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE=E4=BB=B6=E5=90=8D=E3=81=8C=E5=8C=
=96=E3=81=91=E3=81=BE=E3=81=99
>>
>>during my reply / forwarding tests I've seen the following in the heade=
rs:
>>
>>Return-Path: <apr...@my...>
>>Received: from mail.mydomain.tld (mail.mydomain.tld [xxx.xxx.xxx.25])
>> by mojo.12inch.com (8.13.1/8.13.0) with ESMTP id iB818INF002655
>> (version=3DTLSv1/SSLv3 cipher=3DDHE-RSA-AES256-SHA bits=3D256 verify=3D=
FAIL)
>> for <al...@12...>; Wed, 8 Dec 2004 10:08:20 +0900
>>Received: from mail.mydomain.tld (localhost.localdomain [127.0.0.1])
>> by mail.mydomain.tld (8.13.1/8.13.1) with ESMTP id iB8166HS011355
>> (version=3DTLSv1/SSLv3 cipher=3DDHE-RSA-AES256-SHA bits=3D256 verify=3D=
NO)
>> for <al...@12...>; Wed, 8 Dec 2004 10:06:06 +0900
>>Received: (from apache@localhost)
>> by mail.mydomain.tld (8.13.1/8.13.1/Submit) id iB81663u011354;
>> Wed, 8 Dec 2004 10:06:06 +0900
>>Received: from 203.131.192.247
>> (SquirrelMail authenticated user apremselaar);
>> by mail.mydomain.tld with HTTP;
>> Wed, 8 Dec 2004 10:06:06 +0900 (JST)
>>Message-ID: <51706.203.131.192.247.1102467966.squirrel@203.131.192.247>
>>Date: Wed, 8 Dec 2004 10:06:06 +0900 (JST)
>>Subject: [Fwd:
>>WEB=3D?ISO-2022-JP?B?GyRCJWEhPCVrJE43b0w+JCwyPSQxJF4kORsoQg=3D=3D? =
]
>>From: apr...@my...
>>To: al...@12...
>>User-Agent: SquirrelMail/1.4.3a-1
>>X-Mailer: SquirrelMail/1.4.3a-1
>>MIME-Version: 1.0
>>Content-Type: text/plain;charset=3Diso-2022-jp
>>Content-Transfer-Encoding: 7bit
>>X-Priority: 3 (Normal)
>>Importance: Normal
>>X-Spam-Scanner: SpamAssassin 3.000001 (http://www.spamassassin.org/) on
>>mojo.12inch.com
>>X-Spam-Score: -2.467 / 4.000: 22.533%
>>X-Spam-Tests: AWL(0.125),NO_REAL_NAME(0.007),BAYES_00(-2.599)
>>X-Scanned-By: MIMEDefang 2.49 on 64.7.201.48
>>
>>
>>** NOTE: when i look at the header in my mail client (thunderbird, or
>>Squirrelmail 1.4.3a-1) the Subject header does not have a CRLF before
>>the word "WEB" ... it appears to have line-wrapped when I pasted it.
>>the CRLF and spaces between the last character of the encoded subject
>>and the ']' are showing up in the header view or source view of my mail
>>client(s)
>>
>>I've changed the domain-name and IP address information for my company'=
s
>>mailserver but have made no other changes to the header information.
>>
>>
>>out-bound mail from the company network does not pass thru SpamAssassin=
,
>>but is scanned with ClamAV 8.0 anti-virus software. I'm running Sendmai=
l
>>8.13.1 with MIMEDefang milter. I'm not doing any message rebuilding
>>within MIMEDefang.
>>
>>any assistance is greatly appreciated.
>>
>>Thank you,
>>
>>alan
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://productguide.itmanagersjournal.com/
>>--
>>squirrelmail-i18n mailing list
>>List Address: squ...@li...
>>List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-i1=
8n
>>http://squirrelmail.org/cvs
>>
>=20
>=20
>=20
>=20
> -----------------------------------------------------------------------=
-
>=20
> --- Deliver.class.php.orig 2004-06-18 01:20:20.000000000 +0900
> +++ Deliver.class.php 2004-08-26 23:02:16.000000000 +0900
> @@ -601,7 +603,10 @@
> case ($iFoldPos =3D strrpos($line_tmp,'=3D')): bre=
ak;
> default: break;
> }
> -
> + =20
> + if (substr($line_tmp, $iFoldPos, 2) =3D=3D '=3D?')=
{
> + $iFoldPos--;
> + }
> if (!$iFoldPos) { /* clean folding didn't work */
> $iFoldPos =3D $length;
> }
|