PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_mimeDecode » Bug #4962

Mail_MimeDecode: decode impossible with thunderbird

Details

Submitted2005-08-01 16:30 UTC
Fromrouxo at netultra dot net
StatusWont fix
PackageMail_mimeDecode
PHP Version4.3.4
OSlinux
Roadmaps(Not assigned)

Comments

[2005-08-01 16:30 UTC] rouxo at netultra dot net

Description:
------------
When i try to decode a email without files attached from thunderbird it fails

when i try to decode an email without files from outlook express it is ok

example of email fails :

mail_mimedecode Object ( [_debug] => [_default_error_mode] => [_default_error_options] => [_default_error_handler] => [_error_class] => PEAR_Error [_expected_errors] => Array ( ) [_input] => Received: by boccob (mbox testfax) (with Cubic Circle's cucipop (v1.31 1998/05/13) Mon Aug 1 18:27:08 2005) X-From_: Olivier.Roux@netultra.net Mon Aug 1 18:27:04 2005 Return-Path: Received: from myhrisse.netultra.net (myhrisse.netultra.net [213.186.62.200]) by boccob.netultra.net (8.12.10/8.12.5) with ESMTP id j71GR4K5004179 for <0164034849@faxpro.Fr>; Mon, 1 Aug 2005 18:27:04 +0200 Received: from [10.0.0.2] (ppp-156.pool3.dsl.netultra.net [217.66.124.156]) by myhrisse.netultra.net (8.12.10/8.12.10) with ESMTP id j71GR3e7008322 for <0164034849@faxpro.Fr>; Mon, 1 Aug 2005 18:27:03 +0200 Message-ID: <42EE4D64.7050003@netultra.net> Date: Mon, 01 Aug 2005 18:27:16 +0200 From: Olivier Roux User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: 0164034849@faxpro.Fr Subject: test Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit this is a test [_header] => [_body] => [_error] => Could not split header and body [_include_bodies] => 1 [_decode_bodies] => [_decode_headers] => )

Test script:
---------------
$input=$pop3->getRawHeaders($nummessage).chr(13).$pop3->getBody($nummess
age);
$decoder = new Mail_mimeDecode($input);

echo "Decoder :<br>";
print_r($decoder);
echo "fin decoder : <br>";
$structure = $decoder->decode($params);