Home » Mail » Mail_mimeDecode » Bug #5122
Mail_MimeDecode: getSendArray() returns only one of to/cc/bcc as recipient
Details
| 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 |
Comments
[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;
}
[2006-12-07 22:09 UTC] brian at blueo2 dot com
Please fix! The patch works. This has been broken FOREVER!