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

release-0.6
thomascube 17 years ago
parent f8895e8768
commit ae8f192c90

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

@ -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);

Loading…
Cancel
Save