🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79988

Re: Cleanfeed => block_binaries

#79988
From: Son of Serpent Esq
Date: Tue, 06 Jan 2009 22:17
33 lines
2237 bytes
Son of Serpent Esq wrote:
> 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. ;)

Meant to say it created the "cf.binary" log file there.
Technical Details
Message-ID: <slrngm7m4h.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!feeder.erje.net!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!tioat.net!not-for-mail
References: <slrngm7i2m.7qf.junior@tioat.net> <slrngm7igo.5c4.steve@news.mixmin.net> <slrngm7lcb.8j4.junior@tioat.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrngm7m4h.8j4.junior@tioat.net>
Subject: Re: Cleanfeed => block_binaries
Date: Tue, 06 Jan 2009 22:17:53 +0000
From: Son of Serpent Esq <junior@example.com>
References: <slrngm7i2m.7qf.junior@tioat.net> <slrngm7igo.5c4.steve@news.mixmin.net> <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!feeder.erje.net!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: 33
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:17:53 +0000 (UTC)
User-Agent: slrn/0.9.9 (Linux)