FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=7083&edit=1

ID: 7083
Updated by: alan@akbkhome.com
Reported By: joho at webbplatsen dot se
Summary: Mail_mimeDecode: Q-printable from TB 1.5 fails to
decode
-Status: Open
+Status: Feedback
Type: Bug
Package: Mail_mimeDecode
Operating System: Linux
Package Version: 1.3.1
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
SVN version appears to work in


Previous Comments:
------------------------------------------------------------------------

[2006-04-27 10:35:29] cipri

Moved to Mail_MimeDecode subpackage.

------------------------------------------------------------------------

[2006-04-27 10:35:21] cipri

Moved to Mail_MimeDecode subpackage.

------------------------------------------------------------------------

[2006-03-09 16:43:15] joho at webbplatsen dot se

mime.php: 1.39
mimeDecode.php: 1.46

------------------------------------------------------------------------

[2006-03-09 16:40:45] 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 :-)

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 2, '10 at 12:52p
activeSep 2, '10 at 12:52p
posts1
users1
websitepear.php.net

1 user in discussion

Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase