php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41464 Pear Mail
Submitted: 2007-05-22 16:45 UTC Modified: 2007-05-22 17:33 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: takahashi at jme dot jp Assigned:
Status: Not a bug Package: *Mail Related
PHP Version: 5.2.2 OS: OpenSUSE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: takahashi at jme dot jp
New email:
PHP Version: OS:

 

 [2007-05-22 16:45 UTC] 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] => xxxx@xxxx
            [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] => takahashi@jme.jp
            [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] => takahashi@jme.jp
    [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] => xxxx@xxxx
            [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] => takahashi@jme.jp
            [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:takahashi@jme.jp
MIME-Version: 1.0
Content-Type: text/plain
List-Id: 8
Content-Transfer-Encoding: 7bit

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-22 16:55 UTC] takahashi at jme dot jp
jjjj
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 20:01:29 2024 UTC