🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78794

Re: Cleanfeed - bad_hosts_central

#78794
From: Julien ÉLIE
Date: Thu, 28 Feb 2008 17:34
37 lines
2446 bytes
Hi Steve,

>> Is it normal that PHL, PHN and FSL are increased even though no article
>> seems to be rejected by them?
>> I have rejects because of MD5 but I do not understand why these numbers increase.
>
> No, that wouldn't be normal.  The rejections count should exactly match
> the actual number of articles filtered.

Then there is a bug in your implementation since you wrote:

    return reject('EMP (phn nph)', 'EMP')
        if $PHNhistory->add("$hdr{'NNTP-Posting-Host'} $hdr{Newsgroups}");

So it adds an entry for almost every article.

And you then write the status with $phnhashentries defined as follows:

    my $phnhashentries = $PHNhistory ? $PHNhistory->count : 0;

while:

    sub count {
        my ($self) = @_;
        return scalar keys %{$self->{history}};
    }


I believe you should instead write $status{phncaught} or something
like that (where it is incremented if there is a rejection).

-- 
Julien ÉLIE

« -- Sauve qui peut !
  -- Je ne sais pas si je peux, mais je vais essayer ! » (Astérix)
Technical Details
Message-ID: <fq6rb9$7r1$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail
References: <fq6ioq$vr5$1@news.mixmin.net> <fq6me2$282$1@news.trigofacile.com> <fq6pa4$7f9$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <fq6rb9$7r1$1@news.trigofacile.com>
Subject: Re: Cleanfeed - bad_hosts_central
Date: Thu, 28 Feb 2008 18:34:32 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <fq6ioq$vr5$1@news.mixmin.net> <fq6me2$282$1@news.trigofacile.com> <fq6pa4$7f9$1@news.mixmin.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 37
NNTP-Posting-Host: amontpellier-152-1-41-173.w81-251.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1204220074 8033 81.251.187.173 (28 Feb 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Thu, 28 Feb 2008 17:34:34 +0000 (UTC)
In-Reply-To: <fq6pa4$7f9$1@news.mixmin.net>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.20661
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545