thomascube
2008-02-20 ae8f192c90dfab0bfa052d7cb247e03e80a7a249
Remove MDN headers before saving in sent folder + fix wrong variale name

2 files modified
4 ■■■ changed files
program/include/main.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/func.inc 2 ●●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -381,7 +381,7 @@
  if (strlen($CONFIG[$config_key]))
    return $CONFIG[$config_key];
  
  return $table;
  return $sequence;
  }
program/steps/mail/func.inc
@@ -1435,6 +1435,8 @@
      $sent = mail($headers_enc['To'], $headers_enc['Subject'], $msg_body, $header_str, "-f$from");
    }
  
  if ($sent)  // remove MDN headers after sending
    unset($headers['Return-Receipt-To'], $headers['Disposition-Notification-To']);
  
  $message->_headers = array();
  $message->headers($headers);