fixed a message-id rewriting bug

This commit is contained in:
SJ 2013-07-26 13:13:46 +02:00
parent 00e87b1172
commit ce61188c7c

View File

@ -9,7 +9,7 @@ class ModelMailMail extends Model {
if($to == "" || strlen($msg) < 30){ return $ok; }
if(REWRITE_MESSAGE_ID == 1) {
$msg = preg_replace("/Message-ID:([\ \w\_\-\@\<\>\.\r]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
$msg = preg_replace("/Message-ID:([\s\w\W\r]+)\n/i", "Message-ID: <" . generate_random_string(25) . '@' . SITE_NAME . ">\n", $msg);
}
$r = fsockopen($smtphost, $smtpport);