Making a mail with ISO-8850-1 charset in thunderbird 2.x(sending only html 
format), send it to a squirrelmail client (with UTF-8), and then press reply 
button in squirrelmail (1.4.16 or 1.4.20Rc2), makes the accents for example get 
bad characters in replying.
The replying is correct when we send html and text in mail format or the client 
has the same charset as squirrelmail.

Please,we need a server solution for that, we can not control the configuration 
of the clients, and the users are all latin american users.

As Tomas Kuliavas said:

SquirrelMail compose.php and formatBody function in mime.php try to convert
html to text, but code works only with html tags and doesn't convert html
entities to plain text. Simple fix is to run html_entity_decode on html, but
it increases PHP version requirements, supports limited set of charsets and
I suspect that function is not stable enough. Correct fix takes more than
one line.

I am attaching an example of the problem we got.

I am offering myself to do all the tests you want.

Thanks a lot for your time.

--

Andrés Fernando Yacopino

--- Begin Message ---
Title: Untitled Document
Test1 Andrés.



--- End Message ---
Return-Path: <mymail>
Delivered-To: mymail
Received: from acamail.acasalud.com.ar (acamail.acasalud.com.ar [127.0.0.1])
        by acamail.acasalud.com.ar (Postfix) with ESMTP id 20AC64A50006
        for <mymail>; Mon, 23 Nov 2009 14:34:49 -0300 (ART)
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
        acamail.acasalud.com.ar
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=ALL_TRUSTED,BAYES_40,
        HTML_MESSAGE,MIME_HTML_ONLY autolearn=no version=3.2.5
Received: from acamail.acasalud.com.ar (acamail.acasalud.com.ar [127.0.0.1])
        by acamail.acasalud.com.ar (Postfix) with ESMTP id 14B154A50001
        for <mymail>; Mon, 23 Nov 2009 14:34:49 -0300 (ART)
Received: from localhost (acamail.acasalud.com.ar [127.0.0.1])
        by acamail.acasalud.com.ar (Postfix) with ESMTP id 094274A50006
        for <mymail>; Mon, 23 Nov 2009 14:34:49 -0300 (ART)
Received: from acamail.acasalud.com.ar ([127.0.0.1])
        by localhost (acamail.acasalud.com.ar [127.0.0.1]) (amavisd-new, port 
10025)
        with ESMTP id uhcfQpZrSGCE for <mymail>;
        Mon, 23 Nov 2009 14:34:48 -0300 (ART)
Received: from [a.b.c.d] (unknown [a.b.c.d])
        by acamail.acasalud.com.ar (Postfix) with ESMTP id EBA3F4A50001
        for <mymail>; Mon, 23 Nov 2009 14:34:48 -0300 (ART)
Message-ID: <4b0ac7bb.6000...@acasalud.com.ar>
Date: Mon, 23 Nov 2009 14:34:51 -0300
From: =?ISO-8859-1?Q?Andr=E9s_Yacopino?= <mymail>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: mymail
Subject: Test1 =?ISO-8859-1?Q?Andr=E9s?=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Test1 Andr&eacute;s.<br>
<div class="moz-signature"><br>
<meta http-equiv="Content-Type" content="text/html; ">
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
        color: #33CC99;
        font-weight: bold;
}
--></style><br>
</div>
</body>
</html>
Received: from a.b.c.d
        (SquirrelMail authenticated user ayacopino)
        by acamail.acasalud.com.ar with HTTP;
        Mon, 23 Nov 2009 15:35:24 -0200 (ARST)
Message-ID: <5988fa98f6ae0fa6f8a2adfe340ac50a.squir...@acamail.acasalud.com.ar>
In-Reply-To: <4b0ac7bb.6000...@acasalud.com.ar>
References: <4b0ac7bb.6000...@acasalud.com.ar>
Date: Mon, 23 Nov 2009 15:35:24 -0200 (ARST)
Subject: =?utf-8?B?UmU6IFRlc3QxIEFuZHLDqXM=?=
From: =?utf-8?B?QW5kcsOpcyBZYWNvcGlubw==?= <mymail>
To: =?utf-8?B?QW5kcsOpcyBZYWNvcGlubw==?= <mymail>
Reply-To: mymail
User-Agent: SquirrelMail/1.4.16
MIME-Version: 1.0
Content-Type: multipart/alternative;boundary="----=_20091123153524_71074"
X-Priority: 3 (Normal)
Importance: Normal

------=_20091123153524_71074
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit




>      Test1 Andr&eacute;s.
> 
>   Untitled
Document
> 


Andrés Yacopino.
Dpto
Sistemas
AcaSalud

------=_20091123153524_71074
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit

<br />&gt;      Test1 Andr&amp;eacute;s.<br />&gt; <br />&gt;   Untitled
Document<br />&gt; <br /><br /><br />Andrés Yacopino.<br />Dpto
Sistemas<br />AcaSalud
------=_20091123153524_71074--

--- Begin Message ---


>      Test1 Andr&eacute;s.
> 
>   Untitled
Document
> 


Andrés Yacopino.
Dpto
Sistemas
AcaSalud

--- End Message ---

Reply via email to