[imp] BCC bug in CVS-HEAD

Michael M Slusarz slusarz at bigworm.colorado.edu
Wed Feb 26 23:40:16 PST 2003


Quoting Jeff Tucker <jeff at jltnet.com>:

| --On Wednesday, February 26, 2003 11:46 PM -0500 Jeff Tucker
| <jeff at jltnet.com> wrote:
| 
| > Hello. I have imp CVS-HEAD from just a day or two ago.
| >
| > If a message is sent where all of the recipients are in the BCC field,
| > imp moves the recipients to the To field and sends the message with all
| > of the recipients visible.
| >
| 
| To follow up my own post, it's clear that this behavior is caused by the
| following code in compose.php:
| 
|     if ($conf['compose']['allow_bcc']) {
|         $f_bcc = _formatAddr(Horde::getFormData('bcc',
| _getAddressList('bcc')));
|         if (empty($f_to) && empty($f_cc)) {
|             $f_to = $f_bcc;
|             $f_bcc = null;
|         }
|     }

Somehow (I'm sure I'm to blame) we lost the code I added a few months ago to
make this work properly.  The correct behavior is to insert
"undisclosed-recipients:;" into the To field instead of the Bcc addresses. 
I have reinserted this code and it works fine again.

thanks for the catch.

michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list