Article View: news.software.nntp
Article #79973Re: Cleanfeed - "body ()" rejections
From: Steve
Date: Mon, 05 Jan 2009 10:51
Date: Mon, 05 Jan 2009 10:51
47 lines
2947 bytes
2947 bytes
On Sun, 4 Jan 2009 21:56:53 -0800, D. Stussy wrote in
Message-Id: <gjs7fc$s4a$1@snarked.org>:
>=> $1 doesn't seem to be set to anything. What I am seeing is "437
> Body ()". Bad_Body is set to NULL (or whatever value is chosen if the
> file doesn't exist in "read_hashes").
That's interesting. So if bad_body (the file) doesn't exist, $Bad_Body
is set to NULL and then matches articles that (presumably) have no
payload or at least match an empty regex. I've applied a patch to svn
that should fix this behaviour.
if ($config{aggressive}) {
- if (not $gr{reports} and not $hdr{References}) {
+ if (not $gr{reports} and not $hdr{References}
+ and $Bad_Body) {
return reject("Body ($1)", 'Bad Body')
if $body =~ /($Bad_Body)/;
};
This can be downloaded from
http://www.mixmin.net/svn/cleanfeed/trunk/cleanfeed (note there are some
other updates since the previous release).
> What's triggering this: I think the inclusion of a URL (of a news
> server's web site) in a post attempted to news.admin.peering is where
> I have most recently seen this. URLs for the servers' statistics
> pages need to pass this filter.
>
> Should we have a list of groups where URLs are allowed in article
> bodies (NOT including "shorturls")?
Reporting groups are currently excluded from that filter but
news.admin.peering is not defined in spam_report_groups. Therefore if a
post contains a URL that matches a regex defined in bad_body, it would
be rejected. Would you like a $bad_body_exclude regex so that additional
groups can be excluded from this filter? If so, should all groups in a
distribution have to match or just a single group?
> Note also - the definition of "IP" assumes IPv4 only. What about
> IPv6?
Yes, Cleanfeed's IP regex's currently only match IPv4. I'll try and
update this in the near future.
--
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:
<slrngm3pic.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!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!not-for-mailReferences:
<gjs7fc$s4a$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <slrngm3pic.5c4.steve@news.mixmin.net> Subject: Re: Cleanfeed - "body ()" rejections Date: Mon, 05 Jan 2009 10:51:56 +0000 From: Steve <steve@mixmin.net> References: <gjs7fc$s4a$1@snarked.org> 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!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Lines: 47 NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827 X-Complaints-To: abuse@mixmin.net NNTP-Posting-Date: Mon, 5 Jan 2009 10:51:56 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) X-Original-Bytes: 2724