Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Bug #12384 dropping last MIME part - have solution
Submitted: 2007-11-05 05:54 UTC
From: vermette Assigned: alan_k
Status: Closed Package: Mail_mimeDecode (version 1.5.0)
PHP Version: 4.4.1 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-11-05 05:54 UTC] vermette (Josh 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

Comments

 [2010-09-02 17:51 UTC] alan_k (Alan Knowles)
-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.