From 7ec922fdf5817750c29bcb1748e50d799db2eb00 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 01 May 2008 10:27:48 -0400
Subject: [PATCH] - Fix BCC header reset (#1484997)
---
CHANGELOG | 4 ++++
program/steps/mail/func.inc | 4 +++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index da4e14a..6143995 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,10 @@
CHANGELOG RoundCube Webmail
---------------------------
+2008/05/01 (alec)
+----------
+- Fix BCC header reset (#1484997)
+
2008/04/30 (thomasb)
----------
- Introduce new application class 'rcmail' and get rid of some global vars
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 9a81a00..1c1a4c6 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1419,10 +1419,12 @@
// clean Bcc from header for recipients
$send_headers = $headers;
unset($send_headers['Bcc']);
+ // here too, it because txtHeaders() below use $message->_headers not only $send_headers
+ unset($message->_headers['Bcc']);
// send message
$smtp_response = array();
- $sent = smtp_mail($from, $a_recipients, ($foo = $message->txtHeaders($send_headers)), $msg_body, $smtp_response);
+ $sent = smtp_mail($from, $a_recipients, ($foo = $message->txtHeaders($send_headers, true)), $msg_body, $smtp_response);
// log error
if (!$sent)
--
Gitblit v1.9.1