> Edit report at
http://pear.php.net/bugs/bug.php?id=5122&edit=1>
> ID: 5122
> Updated by:
alan@...
> 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;
>
> }
>
> ------------------------------------------------------------------------
>
>
>