🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79232

Re: Cleanfeed Binary Checks

#79232
From: Bert Hyman
Date: Mon, 21 Jul 2008 13:19
31 lines
2270 bytes
steve@mixmin.net (Steve) wrote in news:g61rme$nqb$1@news.mixmin.net:

> Hi all,
> 
> I've puzzled by some results I'm seeing from Cleanfeed filters
> relating to binary checking.
> 
> I noticed some time ago that I was catching a lot of binary files in
> emp.md5 filters.  This was odd as the articles in question should
> have been caught by the misplaced binary filters.  To help narrow it
> down I added this little check to my cleanfeed.local:-
> 
> sub local_filter_reject {
> if (is_binary()) {
>   saveart('emp.md5.bin', $vr, 2) if $vr =~ /^EMP\s\(md5/;
> } else {
>   saveart('emp.md5', $vr) if $vr =~ /^EMP\s\(md5/;
> };
> 
> The result is that virtually no binary files end up in the
> emp.md5.bin file whilst lots are caught in the emp.md5 file.  The
> conclusion I draw from this is that the is_binary function isn't
> tagging all the articles it should, despite the regex's in it being
> absolutely correct, (and manually tested against articles).

I haven't looked at the Cleanfeed code recently, but could this be due
to the order in which the tests are performed? Maybe the articles are
caught by the EMP test before they get to the binary test. 

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Technical Details
Message-ID: <Xns9AE254B58B161VeebleFetzer@127.0.0.1>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.octanews.net!indigo.octanews.net!auth.news-2.mpls.iphouse.com.POSTED!not-for-mail
References: <g61rme$nqb$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9AE254B58B161VeebleFetzer@127.0.0.1>
Subject: Re: Cleanfeed Binary Checks
Date: Mon, 21 Jul 2008 13:19:44 +0000
From: Bert Hyman <bert@iphouse.com>
References: <g61rme$nqb$1@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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.octanews.net!indigo.octanews.net!auth.news-2.mpls.iphouse.com.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Not so you'd notice
User-Agent: Xnews/2006.08.24
Lines: 31
NNTP-Posting-Date: 21 Jul 2008 08:19:44 CDT
NNTP-Posting-Host: 467565f0.auth.newsreader.iphouse.com
X-Trace: DXC=?V;
 OdKXcZg0BkP@5`DISQ?_6RIS\>jRc3FbE0<hKBJT?ZZj0`D_T4Q?D1kiRiW\QF4ZgRhQGSTe:>h6Q1TR0cFn6Sm]9NbUV4Q7iQQMb>j3RJ4
X-Complaints-To: abuse@iphouse.net