Bug #12384 [Opn->Csd]: dropping last MIME part - have solution
| From: | alan at akbkhome dot com | Date: | Thu, 02 Sep 2010 13:51:20 +0000 |
| Subject: | Bug #12384 [Opn->Csd]: dropping last MIME part - have solution | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4751@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=12384&edit=1
ID: 12384
Updated by: alan@akbkhome.com
Reported By: josh at calydonian dot com
Summary: dropping last MIME part - have solution
-Status: Open
+Status: Closed
Type: Bug
Package: Mail_mimeDecode
Operating System: Linux
Package Version: 1.5.0
PHP Version: 4.4.1
-Assigned To:
+Assigned To: alan_k
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: alan_k
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2007-11-05 00:54:03] vermette
Description:
------------
There is a tiny bug in line 506 of mimeDecode.php, where
"for ($i = 1; $i < count($tmp) - 1; $i++) {"
drops the last body part because the of the "<" paired with the "-1".
I noticed this in decoding a multipart-report message, it was dropping
the RFC822 message attached as the last part. I also see that someone
reported that this package doesn't decode forwarded messages -- if that
relates to attached forwards then this may fix that as well.
The fix of course is to change line 506 to
"for ($i = 1; $i < count($tmp); $i++) {"
Sorry, not high tech with CVS at the moment, no patch.
cheers,
j.
Test script:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=12384&edit=1