Article View: news.software.nntp
Article #81099Re: filter_nnrpd.pl and errors
From: Julien ÉLIE
Date: Mon, 25 May 2009 17:28
Date: Mon, 25 May 2009 17:28
37 lines
2431 bytes
2431 bytes
Hi D. Stussy,
> Conversely, I don't run a posting filter, but occasionally I've noted log
> entries complaining that one (that I don't have) can't be found.
I assume it is something like:
May 25 19:14:54 news nnrpd[25646]: SERVER perl filter not defined
Just create an <pathfilter>/filter_nnrpd.pl file with these three lines:
sub filter_post {
return '';
}
It will stop the error.
> Maybe there should be yet another option in inn.conf regarding this:
>
> usepostingfilter: no/false | yes/true | required
>
> yes and no are obvious. With '"required", nnrpd should exit with a fatal
> error if it's missing, and if the filter exits unexpectedly, the message is
> rejected.
> With "no", the missing log entries are skipped.
"no" <=> sub filter_post { return ''; }
"yes" <=> sub filter_post { my $value = ''; [...] return $value; }
"required" <=> Ray's eval() suggestion for errors, news.err log when
no function
--
Julien ÉLIE
« Video meliora proboque deteriora sequor. » (Ovide)
Technical Details
Message-ID:
<gvekgs$prg$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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mailReferences:
<gv8scl$t24$1@aioe.org> <gvb1ud$v18$1@news.trigofacile.com> <8063fqluvn.fsf@banana.shacknet.nu> <gvcu48$cv4$1@aux.snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <gvekgs$prg$1@news.trigofacile.com> Subject: Re: filter_nnrpd.pl and errors Date: Mon, 25 May 2009 19:28:52 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gv8scl$t24$1@aioe.org> <gvb1ud$v18$1@news.trigofacile.com> <8063fqluvn.fsf@banana.shacknet.nu> <gvcu48$cv4$1@aux.snarked.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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 37 NNTP-Posting-Host: aaubervilliers-151-1-37-195.w83-112.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 1243272540 26480 83.112.148.195 (25 May 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Mon, 25 May 2009 17:29:00 +0000 (UTC) In-Reply-To: <gvcu48$cv4$1@aux.snarked.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049