🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79985

Re: Cleanfeed - "body ()" rejections (and IPv6)

#79985
From: Steve
Date: Tue, 06 Jan 2009 17:09
74 lines
4771 bytes
On Mon, 5 Jan 2009 17:39:01 -0800, D. Stussy wrote in
Message-Id: <gjuf94$qn5$1@snarked.org>:

> I agree that should fix the "null/empty" condition.  However, what is
> "$1" supposed to be set to?  The expression found?  (Sorry, I never
> properly learned perl.)  If an empty regex expression "~//" matches
> everything, that would be a problem, and explains why $1 is also null.

$1 matches the first bracketed element within the Regular Expression.
For example:
/([ab]12)3/
Would match b123 and $1 would return b12.

The change I made following your report should ensure that null is never
matched as Bad_Body must be True.

> What I was thinking of is a group list/regex that contains groups
> where LIMITED URL posting is permitted.  By limited, I imply 1 but
> certainly NOT more than 3.  "news.admin.peering" is such a group.  So
> would be some groups like "alt.review-my-website" or
> "alt.on-what-website-can-I-find-X".  Certain software-support groups
> might want to be included if it is customary to include web page URLs
> to the manual, etc., in articles (and replies).
I'll do some tests on this idea.  It might be a good concept to apply to
the Scoring filters so that multiple URL's alone isn't enough to reject
an article.
(You suggested the same thing later in your post).

> Skipping ONLY bad_body might not be the correct approach.  Defining
> "aggressive" = 0 also bypasses a few other checks, and if I read the
> script correctly, some of those [bypassed] checks are checks in the
> body for URLs (in the scoring filter).
If aggressive is True, various headers (Subject, From, Message-ID and
Organization) are checked against the one and two point word regexs.
With no bad_body file, this is the only behaviour altered by setting
aggressive.  I'm going to take out the aggressive check on bad_body as
it's wrong to tie these two filters together by the same switch.
Especially as bad_body is disabled simply by not having the file.

> Instead of writing this from scratch, is there a perl library routine
> on CPAN that has already been written to validate/match IPv6
> addresses?  I think it's worth looking for one.
Yes, there is a routine that does this.  I haven't played with it yet
but I'll take a look now.

> 1) spam_report_groups:  includes "\.spamtrap\." - which would NOT
> catch group "alt.alt.spamtrap".
Changed to \.spamtrap

> 2)  "alt.usenet.kooks" seems out-of-control with some of its recent
> (off-topic) cross-postings.  One posting from 28 Dec 2008 had 9 groups
> (alt.nuke.the.usa, alt.fan.oj-simpson, alt.usenet.kooks,
> alt.obituaries, rec.arts.poems, soc.men, alt.fan.art-bell,
> alt.battlestar-galactica, alt.fluff-girl.pinku-sensei) but was clearly
> of interest only to AUK.  I may not like censorship, but I am also
> against disruptive stupidity such as this (which seems to happen alot
> with alt.BSG).  Any thoughts as to adding anything with "kook" and
> certain other miscreant words in the group name to the
> anti-cross-posting (or limited cross-posting) filters for everyone (as
> oposed to local settings)?  Perhaps meow_groups or low_xpost_groups?
> (I may do this locally if there's no global consensus.)
This is a tricky one, just about everything in alt.usenet.kooks is
widely crossposted.  Making it low-crosspost would filter a high
percentage of its content.  It would help if people properly employed
Followup-To headers.  Perhaps that's food for another scoring filter.

> (meow_groups are not currently config_appendable).
There's probably an historical reason why that is but unless somebody
can tell me what it is, I'll make it appendable.

-- 
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: <slrngm742q.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.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
References: <gjs7fc$s4a$1@snarked.org> <slrngm3pic.5c4.steve@news.mixmin.net> <gjuf94$qn5$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrngm742q.5c4.steve@news.mixmin.net>
Subject: Re: Cleanfeed - "body ()" rejections (and IPv6)
Date: Tue, 06 Jan 2009 17:09:46 +0000
From: Steve <steve@mixmin.net>
References: <gjs7fc$s4a$1@snarked.org> <slrngm3pic.5c4.steve@news.mixmin.net> <gjuf94$qn5$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!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: 74
NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Tue, 6 Jan 2009 17:09:46 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)