Thomas Bruederli
2012-10-31 dc6794f9c40be9a4aed6927faad85b95d7642369
Don't add Bcc headers from identity twice (e.g. if already saved in draft)
1 files modified
2 ■■■ changed files
program/steps/mail/sendmail.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/sendmail.inc
@@ -364,7 +364,7 @@
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 ++;
}