From 5d4991fc8bf9d54fadc9d08651d9067a124a6680 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 17 Jan 2024 11:12:59 -0700 Subject: [PATCH] Remove duplicate articles in outgoing dir. --- Rocksolid_Light/rslight/scripts/send.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Rocksolid_Light/rslight/scripts/send.php b/Rocksolid_Light/rslight/scripts/send.php index d816327..ff18f9d 100644 --- a/Rocksolid_Light/rslight/scripts/send.php +++ b/Rocksolid_Light/rslight/scripts/send.php @@ -84,6 +84,10 @@ function post_articles($ns, $spooldir) fputs($ns, ".\r\n"); fclose($message_fp); $response = line_read($ns); + if (strcmp(substr($response, 0, 7), "441 435") == 0) { + $removed = unlink($outgoing_dir . $message); + file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Response: " . $response, FILE_APPEND); + } if (strcmp(substr($response, 0, 3), "240") == 0) { $removed = unlink($outgoing_dir . $message); file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Posted: " . $message . ": " . $response . " Removed: " . $removed, FILE_APPEND);