Bug #5122 [Ana->Csd]: Mail_MimeDecode: getSendArray() returns only one of to/cc/bcc as recipient

From: Date: Mon, 21 Sep 2009 06:37:18 +0000
Subject: Bug #5122 [Ana->Csd]: Mail_MimeDecode: getSendArray() returns only one of to/cc/bcc as recipient
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1685@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=5122&edit=1 ID: 5122 Updated by: alan@akbkhome.com Reported By: sciacco at gmail dot com Summary: Mail_MimeDecode: getSendArray() returns only one of to/cc/bcc as recipient -Status: Analyzed +Status: Closed Type: Bug Package: Mail_mimeDecode Operating System: Linux PHP Version: 4.4.0 -Assigned To: +Assigned To: alan_k Roadmap Versions: New Comment: -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... Previous Comments: ------------------------------------------------------------------------ [2006-12-07 17:09:07] brian at blueo2 dot com Please fix! The patch works. This has been broken FOREVER! ------------------------------------------------------------------------ [2006-04-27 10:34:52] cipri Moved to Mail_MimeDecode subpackage. ------------------------------------------------------------------------ [2005-08-17 06:47:43] 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; } ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=5122&edit=1

« previous php.pear.bugs (#1685) next »