Try this.
David
Dave Wood a écrit :
I've been using Roundcube as my main web mail applicaition now for a few months. A couple of days ago I sent an email out to a list of recipients (about 20 friends), all in the BCC field, in order to prevent people from replying to everyone on the list. One reply I received was from someone asking why they could see everyone's email address in the BCC field.
I've just upgraded to the latest CVS version (about 10 minutes ago), and tested again. It seems that RoundCube is including the BCC header as a regular header in the email and thus it's being sent to everyone. Fortunately I was just using the BCC header to control replies and it didn't really matter that others could see each others info. But this has the potential to cause some serious problems.
Imagine emailing your girlfriend explaining how she's not being rational, and bccing a buddy cause it's so funny, and then she see's you'd bcced him! Not going to be a fun time! lol.My Config: Using PHP 4.3.10, on Apache 1.3. qmail is the smtp server, and RoundCube is configured to use smtp, not mail().
-- Dave
--- tmp/roundcubemail/program/steps/mail/sendmail.inc 2006-02-04 20:08:10.000000000 +0100 +++ roundcubemail/program/steps/mail/sendmail.inc 2006-02-05 12:24:20.000000000 +0100 @@ -204,8 +204,12 @@ if (strlen($headers['Bcc'])) $a_recipients[] = $headers['Bcc'];
//Clean Bcc from header for recipients
$headers_for_recipients=$headers;
unset($headers_for_recipients['Bcc']);
// generate message headers for recipient
$header_str = $MAIL_MIME->txtHeaders($headers_for_recipients);
// send message $sent = smtp_mail($from, $a_recipients, $header_str, $msg_body);
@@ -229,6 +233,9 @@ $headers_enc = $MAIL_MIME->headers($headers); unset($headers_php['To'], $headers_php['Subject']);