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  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2009-09-21 11:37 UTC
Package:
Bug Type:
Summary:
From: sciacco at gmail dot com
New email:
PHP Version: Package Version: OS:

 

 [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...