PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_mimeDecode » Bug #7083

Mail_mimeDecode: Q-printable from TB 1.5 fails to decode

Details

Submitted2006-03-09 21:40 UTC
Fromjoho at webbplatsen dot se
StatusNo Feedback
PackageMail_mimeDecode
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2006-03-09 21:40 UTC] joho at webbplatsen dot se

Description:
------------
As far as I can see, there's nothing unclear about the message header nor the message's contents or encoding. Or is it barfing because there's no 7bit/8bit indicator?

Test script:
---------------
This is the code:

$input = '';
$fp = fopen("php://stdin", "r");
while (!feof ($fp))
{
$input .= fgets ($fp, 1024);
}
$xo = new Mail_mimeDecode ($input);
$xa = array ();
$xa ['include_bodies'] = TRUE;
$xa ['decode_bodies'] = TRUE;
$xa ['decode_headers'] = TRUE;
$xp = $xo->decode ($xa);

This is the mail:

Date: Thu, 09 Mar 2006 22:18:13 +0100
From: Joaquim Homrighausen <joho@foo.doo>
User-Agent: Thunderbird 1.5 (X11/20051201)
MIME-Version: 1.0
To: joho@foo.doo
Subject: Detta =?ISO-8859-1?Q?=E4r_en_test=2C_som_vi_skall_te?=
=?ISO-8859-1?Q?sta?=
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Och h=E4r =E4r mailet :-)

Expected result:
----------------
Subject: Detta är en test, som vi skall testa

Och här är mailet :-)

Actual result:
--------------
Subject: Detta ,r en test, som vi skall testa

Och h,r ,r mailet :-)

[2006-03-09 21:43 UTC] joho at webbplatsen dot se

mime.php: 1.39
mimeDecode.php: 1.46