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

Bug #5122 Mail_MimeDecode: getSendArray() returns only one of to/cc/bcc as recipient
Submitted: 2005-08-17 10:47 UTC
From: sciacco at gmail dot com Assigned: alan_k
Status: Closed Package: Mail_mimeDecode
PHP Version: 4.4.0 OS: Linux
Roadmaps: 1.6.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 13 + 7 = ?

 
 [2005-08-17 10:47 UTC] sciacco at gmail dot com
Description: ------------ Hi, if you use the method getSendArray() to split recipients, headers and body from a message, you will get as recipients only one of to,cc, or bcc. Test script: --------------- This is the fix (revision numbers are relative to my own repository) Index: lib/pear/Mail/mimeDecode.php =================================================================== --- lib/pear/Mail/mimeDecode.php (revision 49) +++ lib/pear/Mail/mimeDecode.php (working copy) @@ -706,7 +706,7 @@ case "to": case "cc": case "bcc": - $to = ",".$item['value']; + $to .= ",".$item['value']; default: break; }

Comments

 [2006-04-27 14:34 UTC] cipri (Cipriano Groenendal)
Moved to Mail_MimeDecode subpackage.
 [2006-12-07 22:09 UTC] brian at blueo2 dot com (Brian Nelson)
Please fix! The patch works. This has been broken FOREVER!
 [2009-09-21 11:37 UTC] alan_k (Alan Knowles)
-Status: Analyzed +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. Needs a release though...