summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-10-31 10:50:31 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-10-31 10:50:31 +0100
commitdc6794f9c40be9a4aed6927faad85b95d7642369 (patch)
treee298eab9030c9a37c54a6cc6ad68d201bd3a382d /program/steps/mail/sendmail.inc
parent92cb7f56f38564d62c79a6c67b8b99248a3baa74 (diff)
Don't add Bcc headers from identity twice (e.g. if already saved in draft)
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 4fac872d1..348ac9b96 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -364,7 +364,7 @@ if (!empty($mailcc)) {
if (!empty($mailbcc)) {
$headers['Bcc'] = $mailbcc;
}
-if (!empty($identity_arr['bcc'])) {
+if (!empty($identity_arr['bcc']) && stripos($headers['Bcc'], $identity_arr['bcc']) === false) {
$headers['Bcc'] = ($headers['Bcc'] ? $headers['Bcc'].', ' : '') . $identity_arr['bcc'];
$RECIPIENT_COUNT ++;
}