From dce9d817561612b32a846bd5977855e64f52d493 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 24 Dec 2023 13:11:52 -0700 Subject: [PATCH] Include clean messages in spam logfile (as NOT Spam). --- Rocksolid_Light/rocksolid/newsportal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index e9555ba..020efca 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -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,