PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_mimeDecode » Bug #5122

Mail_MimeDecode: getSendArray() returns only one of to/cc/bcc as recipient

Details

Submitted2005-08-17 10:47 UTC
Fromsciacco at gmail dot com
Assignedalan_k
StatusClosed
PackageMail_mimeDecode
PHP Version4.4.0
OSLinux
Roadmaps1.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!