Article View: news.software.nntp
Article #79987Re: Cleanfeed => block_binaries
From: Son of Serpent Esq
Date: Tue, 06 Jan 2009 22:04
Date: Tue, 06 Jan 2009 22:04
37 lines
2336 bytes
2336 bytes
Steve wrote:
> On Tue, 6 Jan 2009 21:08:38 +0000 (UTC), Son of Serpent Esq wrote in
> Message-Id: <slrngm7i2m.7qf.junior@tioat.net>:
>
>> I can not get the block_binaries filter to work.
> Have you got any logging of binary rejects? Doing so will make it
> easier to diagnose what the problem might be.
>
> If not, try adding something like this in cleanfeed.local:-
>
> sub local_filter_reject {
> ...
> saveart('cf.binary', $vr) if $vr =~ /^Binary/;
> ...
> };
>
> Where the ... indicates anything else you might have defined within the
> local_filter_reject function.
That line is already there in cleanfeed.local.
> Do a "perl -wc cleanfeed.local" to ensure there's no syntax errors, then
> reload the filter with "ctlinnd reload filter.perl bin logging".
Never noticed cf.binary in the logs. There is cf.scoring, emp.ph1,
emp.md5 etc. For a test, I just tried setting "return 1;" in the
"sub is_binary" routine and it did start rejecting with
"Binary: misplaced" and created "cf.scoring" before I could flip the
return setting back to 0 and reload. Boy that was dumb. ;)
Yes, I do the syntax check every time I make a change to any of those
perl files. It's really odd that everything seems to work fine
except rejecting binaries.
I don't mind experimenting with the settings here so let me know if
you want me to try anything else.
Technical Details
Message-ID:
<slrngm7lcb.8j4.junior@tioat.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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!tioat.net!not-for-mailReferences:
<slrngm7i2m.7qf.junior@tioat.net> <slrngm7igo.5c4.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <slrngm7lcb.8j4.junior@tioat.net> Subject: Re: Cleanfeed => block_binaries Date: Tue, 06 Jan 2009 22:04:59 +0000 From: Son of Serpent Esq <junior@example.com> References: <slrngm7i2m.7qf.junior@tioat.net> <slrngm7igo.5c4.steve@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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!tioat.net!not-for-mail Newsgroups: news.software.nntp Organization: Serpent and Son - Garden Supplies and Lawn Mower Repair Lines: 37 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: news@tioat.net NNTP-Posting-Date: Tue, 6 Jan 2009 22:04:59 +0000 (UTC) User-Agent: slrn/0.9.9 (Linux)