From a2dfffbd7c880db400685c112bb7f4130717514c Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sat, 1 Jul 2023 10:44:32 -0700 Subject: [PATCH] Restrict XOVER to in spoolnews.php. --- Rocksolid_Light/rslight/scripts/spoolnews.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rslight/scripts/spoolnews.php b/Rocksolid_Light/rslight/scripts/spoolnews.php index 5e014ca..34eafc8 100755 --- a/Rocksolid_Light/rslight/scripts/spoolnews.php +++ b/Rocksolid_Light/rslight/scripts/spoolnews.php @@ -209,7 +209,12 @@ function get_articles($ns, $group) { // Get overview from server $server_overview = array(); $re = false; - fputs($ns, "xover ".$article."-".$detail[3]."\r\n"); + if(($detail[3] - $article) > $maxarticles_per_run) { + $getlast = $article + $maxarticles_per_run; + } else { + $getlast = $detail[3]; + } + fputs($ns, "xover ".$article."-".$getlast."\r\n"); $response=line_read($ns); // and once more if ((substr($response,0,3) != "224")) { file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Cannot get overview from ".$CONFIG['remote_server']." for ".$group, FILE_APPEND);