Article View: news.software.nntp
Article #86459Re: nnrpd Perl filter not being applied
From: Julien ÉLIE
Date: Wed, 25 Mar 2015 19:54
Date: Wed, 25 Mar 2015 19:54
32 lines
2342 bytes
2342 bytes
Hi Steve,
> The perl script hasn't changed recently and checking its syntax with
> perl -wc filter_nnrpd.pl reports no issues.
>
> Each post to the server is generating a message in news.err of:
> Mar 25 16:40:33 snorky nnrpd[3280]: SERVER perl filter not defined
It means that Perl failed to load the filter_post() function in
filter_nnrpd.pl.
> I've download the latest INN version from svn today and recompiled it
> but the problem is still there. Any suggestions how I can isolate the
> issue?
Maybe trying a bare bone filter_nnrpd.pl that contains only:
sub filter_post {
return "Rejected" if $hdr{"Subject"} =~ /just a test/i;
return "";
}
You should not see "SERVER perl filter not defined" in your logs at each
post, and those that contain "just a test" in their Subject header field
should be rejected.
--
Julien ÉLIE
« Mais dis à ton ami qu'il cesse de jeter notre argent par les
écoutilles ! » (Astérix)
Technical Details
Message-ID:
<mev3p6$han$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.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-651-1-281-72.w83-114.abo.wanadoo.fr!not-for-mailReferences:
<slrnmh5sp2.h7m.steve@snorky.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <mev3p6$han$1@news.trigofacile.com> Subject: Re: nnrpd Perl filter not being applied Date: Wed, 25 Mar 2015 20:54:14 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <slrnmh5sp2.h7m.steve@snorky.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.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-651-1-281-72.w83-114.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 25 Mar 2015 19:54:14 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-281-72.w83-114.abo.wanadoo.fr:83.114.80.72"; logging-data="17751"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; In-Reply-To: <slrnmh5sp2.h7m.steve@snorky.mixmin.net> Lines: 31