Article View: news.software.nntp
Article #83131Re: Is filter on
From: Steve Crook
Date: Sat, 19 Jun 2010 19:23
Date: Sat, 19 Jun 2010 19:23
31 lines
2107 bytes
2107 bytes
On Sat, 19 Jun 2010 19:40:07 +0100, Dave H wrote in
Message-Id: <hvj2u6$p6s$1@news.eternal-september.org>:
> Wait, did we just move and rename cleanfeed to filter_innd.pl ? <<<<<<<<<
Hi Dave,
Oops, that's an error. Corrected now, thanks.
> Anyway, I have this line in cleanfeed.local
> do_scoring_filter => 1,
> while this appears in cleanfeed.stats
> do_scoring_filter: 1
Yes, the first is how Perl expects to see hash entries formatted. The
second is just a human-friendly output.
> I copied a lot of bad words, replacing pipe with space, and post went thru
> ok.
> I did reload the filter, BTW.
> The group posted to was not in any hierarchy, just a local thing
> How did it get thru?
Cleanfeed doesn't actually score bad words in the message body, only in
specific headers: Subject, From, Message-ID and Organization. It would
be very easy to score the body from within cleanfeed.local if this is
what you're trying to do.
sub local_filter_scoring {
my $score = '';
$score .= "!Sub1Pt" while $body =~ /$one_point_words/go;
$score .= "!!Sub2Pt" while $body =~ /$two_point_words/go;
return $score;
};
Technical Details
Message-ID:
<slrni1q69q.rj2.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.erje.net!news.mixmin.net!.POSTED.ip6-localhost!not-for-mailReferences:
<hvj2u6$p6s$1@news.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <slrni1q69q.rj2.steve@news.mixmin.net> Subject: Re: Is filter on Date: Sat, 19 Jun 2010 19:23:38 +0000 From: Steve Crook <steve@mixmin.net> References: <hvj2u6$p6s$1@news.eternal-september.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.erje.net!news.mixmin.net!.POSTED.ip6-localhost!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Injection-Date: Sat, 19 Jun 2010 19:23:38 +0000 (UTC) Injection-Info: news.mixmin.net; posting-host="ip6-localhost:::1"; logging-data="23244"; mail-complaints-to="abuse@mixmin.net" User-Agent: slrn/pre1.0.0-18 (Linux) Lines: 30 X-Original-Bytes: 1850