Remove MDN headers before saving in sent folder + fix wrong variale name

This commit is contained in:
thomascube
2008-02-20 22:47:06 +00:00
parent f8895e8768
commit ae8f192c90
2 changed files with 3 additions and 1 deletions

View File

@@ -381,7 +381,7 @@ function get_sequence_name($sequence)
if (strlen($CONFIG[$config_key]))
return $CONFIG[$config_key];
return $table;
return $sequence;
}

View File

@@ -1435,6 +1435,8 @@ function rcmail_deliver_message(&$message, $from, $mailto)
$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);