πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80883

Re: filter_nnrpd.pl (maybe a bug)

#80883
From: Aioe
Date: Mon, 04 May 2009 20:18
39 lines
2334 bytes
Julien Γ‰LIE wrote:

> According to Perl documentation, delete() returns the value of the last
> element deleted.  We are in scalar context here in filter_post(), which
> expects a return value.

it's clear now.

> It is not filter_nnrpd.pl that detects the caller.  It is called by nnrpd.
> Only nnrpd calls it.
> I do not believe using <pathfilter>/innd/xxx and <pathfilter>/nnrpd/xxx
> will help much...

there're people, beginners, that install postfilter instead of cleanfeed, 
cleanfeed instead of postfilter. This error is common because both scripts 
need to be linked with a file in pathetc, filter_nnrpd.pl and filter_innd.pl 
have got similar names and there're two other files in the same directory  
that starts with "nnrpd_".
Neither innd nor nnrpd currently detect this error and it's hard for a 
beginner to find it because the nnrpd or innd logs include only a generic 
failure. More directories (one per program) imho make the filters easier to 
use and help to avoid errors (at that point filenames will be much simpler 
(filter.pl, access.pl, auth.pl) and there will be a clear distinction among 
programs). btw it's only an idea.

Technical Details
Message-ID: <gtnija$8ju$1@aioe.org>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail
References: <gtm4q0$qtg$1@aioe.org> <gtne28$dtv$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gtnija$8ju$1@aioe.org>
Subject: Re: filter_nnrpd.pl (maybe a bug)
Date: Mon, 04 May 2009 22:18:36 +0200
From: Aioe <estasi@aioe.org>
References: <gtm4q0$qtg$1@aioe.org> <gtne28$dtv$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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail
Newsgroups: news.software.nntp
Followup-To: news.software.nntp
Organization: Aioe.org
Lines: 39
NNTP-Posting-Host: Yjb0OEgFm349wAaqpjrAWA.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
X-Complaints-To: abuse@aioe.org
NNTP-Posting-Date: Mon, 4 May 2009 20:18:50 +0000 (UTC)
X-Notice: Filtered by postfilter v. 0.7.8
Cancel-Lock: sha1:z4GOolkqlYKw8XSNrRQpS4/wJXo=
User-Agent: KNode/0.99.01