Include clean messages in spam logfile (as NOT Spam).

This commit is contained in:
Retro_Guy 2023-12-24 13:11:52 -07:00
parent 8a5cc20b1f
commit dce9d81756
1 changed files with 3 additions and 1 deletions

View File

@ -1337,7 +1337,9 @@ function check_spam($subject, $from, $newsgroups, $ref, $body, $msgid)
}
unlink($spamfile);
if ($res === 1) {
file_put_contents($logfile, "\n" . format_log_date() . " " . $spamresult . "\n------------\n", FILE_APPEND);
file_put_contents($logfile, "\n" . format_log_date() . " " . $spamresult . "\n", FILE_APPEND);
} else {
file_put_contents($logfile, "\n" . format_log_date() . " Checked: " . $from . " " . $newsgroups . " " . $msgid . "\n------------\n", FILE_APPEND);
}
return array(
'res' => $res,