#41466 [NEW]: Pear Mail
From: takahashi at jme dot jp
Operating system: OpenSUSE
PHP version: 5.2.2
PHP Bug Type: *Mail Related
Bug description: Pear Mail
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
--
Edit bug report at http://bugs.php.net/?id=41466&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41466&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41466&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41466&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41466&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41466&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41466&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41466&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41466&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41466&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41466&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41466&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41466&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41466&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41466&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41466&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41466&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41466&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41466&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41466&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41466&r=mysqlcfg
Thread (2 messages)
- takahashi at jme dot jp