|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-22 17:08 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
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] => "藤山恵奈" [reply-to] => Array ( [0] => "藤山恵奈" [1] => ) [to] => xxx@xxx.xxx [subject] => 中でも大丈夫です♪ ) [ctype_primary] => text [ctype_secondary] => plain [Date] => Sun, 20 May 2007 12:52:08 -0800 [X-Info] => xxx@xxx.xxx [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] => "藤山恵奈" [reply-to] => Array ( [0] => "藤山恵奈" [1] => ) [to] => xxx@xxx.xxx [subject] => 中でも大丈夫です♪ ) [ctype_primary] => text [ctype_secondary] => plain [body] => Date: Sun, 20 May 2007 12:52:08 -0800 X-Info:xxx@xxx.xxx MIME-Version: 1.0 Content-Type: text/plain List-Id: 8 Content-Transfer-Encoding: 7bit