ID:               41466
 Updated by:       [EMAIL PROTECTED]
 Reported By:      takahashi at jme dot jp
-Status:           Open
+Status:           Bogus
 Bug Type:         *Mail Related
 Operating System: OpenSUSE
 PHP Version:      5.2.2
 New Comment:

Correct place to report bugs in PEAR: http://pear.php.net/bugs/


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

[2007-05-22 16:59:09] takahashi at jme dot jp

Description:
------------
Pear Mail Bugs

Reproduce code:
---------------
<?php
require_once("Mail/mimeDecode.php");

$mail = file_get_contents($source);
$decoder = new Mail_mimeDecode($mail);
$params['include_bodies'] = true;
$params['decode_bodies']  = true;
$params['decode_headers'] = true;
$structure = $decoder->decode($params);

echo '<pre>';
print_r($structure);
?>

Expected result:
----------------
stdClass Object
(
    [headers] => Array
        (
            [return-path] => 
            [delivered-to] => [EMAIL PROTECTED]
            [received] => Array
                (
                    [0] => (qmail 21297 invoked by uid 0); 20 May 2007 
 02:56:28 -0000
                    [1] => from unknown (HELO 000.000.000.000)
(210.236.59.29) by 0.0.0.3 with SMTP; 20 May 2007 02:56:28 -0000
                )

            [from] => "&#34276;&#23665;&#24693;&#22856;" 
            [reply-to] => Array
                (
                    [0] => "&#34276;&#23665;&#24693;&#22856;" 
                    [1] => 
                )

            [to] => [EMAIL PROTECTED]
            [subject] =>
&#20013;&#12391;&#12418;&#22823;&#19976;&#22827;&#12391;&#12377;&#9834;
        )

    [ctype_primary] => text
    [ctype_secondary] => plain
    [Date] => Sun, 20 May 2007 12:52:08 -0800
    [X-Info] => [EMAIL PROTECTED]
    [MIME-Version] => 1.0
    [Content-Type] => text/plain
    [List-Id] => 8
    [Content-Transfer-Encoding] => 7bit
    [body] =>


Actual result:
--------------
stdClass Object
(
    [headers] => Array
        (
            [return-path] => 
            [delivered-to] => [EMAIL PROTECTED]
            [received] => Array
                (
                    [0] => (qmail 21297 invoked by uid 0); 20 May 2007
02:56:28 -0000
                    [1] => from unknown (HELO 000.000.000.000)
(210.236.59.29) by 0.0.0.0 with SMTP; 20 May 2007 02:56:28 -0000
                )

            [from] => "&#34276;&#23665;&#24693;&#22856;" 
            [reply-to] => Array
                (
                    [0] => "&#34276;&#23665;&#24693;&#22856;" 
                    [1] => 
                )

            [to] => [EMAIL PROTECTED]
            [subject] =>
&#20013;&#12391;&#12418;&#22823;&#19976;&#22827;&#12391;&#12377;&#9834;
        )

    [ctype_primary] => text
    [ctype_secondary] => plain
    [body] => Date: Sun, 20 May 2007 12:52:08 -0800
X-Info:[EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain
List-Id: 8
Content-Transfer-Encoding: 7bit


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


-- 
Edit this bug report at http://bugs.php.net/?id=41466&edit=1

Reply via email to