🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44118

Re: Cleanfeed and INN 2.3 problems.

#44118
From: those who know me have no need o...
Date: Wed, 16 Feb 2000 00:00
60 lines
2858 bytes
sloane@ukans.edu (Bob Sloane) wrote:
>Very good! The line in question is in fact line 572, and changing it
>seems to have fixed the problem. Thanks.

of course that would depend on what other patches present ...
(minimal -- suggestions welcome)

--- cleanfeed.orig      Thu Sep  3 00:55:05 1998
+++ cleanfeed   Wed Feb 16 15:19:17 2000
@@ -523,6 +523,10 @@
         $timer{'articles'}++;
     }

+    if ($hdr{'Distribution'} =~ /(^|,)\s*,\s*(,|$)/) {
+       return reject ("Bogus distribution header with null element", "Bad distribution header");
+    }
+
     if (! $hdr{'Control'}) {

        &trimhashes if ($cycles++ > $config{'trimcycles'});
@@ -568,8 +572,8 @@
        # If all newsgroups are excluded from filtering, bail now
        return "" if ($gr{'skip'});

-       # count the lines in the article
-       $lines = $hdr{'__BODY__'} =~ tr/\n/\n/;
+       # number of lines in the article
+       $lines = $hdr{'__LINES__'};

        # call a local filter if it exists
        if (defined &local_filter_before_emp) {
@@ -1220,6 +1224,7 @@
     if ($config{'refuse_messageids'}) {
         if ($mid =~ /$config{'refuse_messageids'}/o) {
             $status{'refused'}++;
+            $timer{'articles'}++ if ($config{'timer_info'});
             return "No";
         }
     }
@@ -1227,6 +1232,7 @@
     if ($config{'block_late_cancels'}) {
         if ($mid =~ /^<cancel\.(.*)/ && $MIDhistory{'<'.$1}) {
             $status{'refused'}++;
+            $timer{'articles'}++ if ($config{'timer_info'});
             return "No";
         }
     }
@@ -1288,6 +1294,7 @@
     my ($superentries) = scalar keys %supersede;

     open FILE, ">$config{'statfile'}" or return 0;
+    print FILE "Updated: " . (scalar localtime) . "\n";
     print FILE "Accepted: $status{'accepted'}\n";
     print FILE "Rejected: $status{'rejected'}\n";
     print FILE "Refused: $status{'refused'}\n" if ($config{'do_mid_filter'});

-- 
okay, have a sig then

Technical Details
Message-ID: <7iGq4.1872$WH1.24441@news.swbell.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <me2Vvk8ZsYFA@kuhub.cc.ukans.edu> <ylu2ja5qer.fsf@windlord.stanford.edu> <0aSmENoRIp8i@kuhub.cc.ukans.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7iGq4.1872$WH1.24441@news.swbell.net>
Subject: Re: Cleanfeed and INN 2.3 problems.
Date: Wed, 16 Feb 2000 00:00:00 +0000
From: not-a-real-address@usa.net (those who know me have no need of my name)
References: <me2Vvk8ZsYFA@kuhub.cc.ukans.edu> <ylu2ja5qer.fsf@windlord.stanford.edu> <0aSmENoRIp8i@kuhub.cc.ukans.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 586710254
X-Complaints-To: abuse@swbell.net
X-Trace: news.swbell.net 950743299 209.78.192.139 (Wed, 16 Feb 2000 17:21:39 CST)
Organization: earthfriends
User-Agent: Xnews/03.02.04
NNTP-Posting-Date: Wed, 16 Feb 2000 17:21:39 CST
Newsgroups: news.software.nntp