Article View: news.software.nntp
Article #79231Cleanfeed Binary Checks
From: Steve
Date: Mon, 21 Jul 2008 11:25
Date: Mon, 21 Jul 2008 11:25
35 lines
2345 bytes
2345 bytes
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).
This issue also has a knock-on effect that if fuzzy body checking is
enabled, it fuzzies the binary articles that slip through the is_binary
function. This results in the EMP hash being based on nothing but the
filename of the encoded binary, (all that's left after fuzzying).
I was wondering if anyone else has experienced this issue, or perhaps
might not have noticed it's happening.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Technical Details
Message-ID:
<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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <g61rme$nqb$1@news.mixmin.net> Subject: Cleanfeed Binary Checks Date: Mon, 21 Jul 2008 11:25:02 +0000 From: Steve <steve@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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Lines: 35 NNTP-Posting-Host: da8d3a6a19fa02f9a10120a1477aeb90 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@mixmin.net NNTP-Posting-Date: Mon, 21 Jul 2008 11:25:02 +0000 (UTC) User-Agent: slrn/pre0.9.9-111 (Linux)