Article View: news.software.nntp
Article #83133Re: Is filter on
From: Steve Crook
Date: Sat, 19 Jun 2010 19:28
Date: Sat, 19 Jun 2010 19:28
19 lines
1691 bytes
1691 bytes
On Sat, 19 Jun 2010 19:23:38 +0000 (UTC), Steve Crook wrote in
Message-Id: <slrni1q69q.rj2.steve@news.mixmin.net>:
> 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;
> };
Better if I'd edited my pasting a bit more carefully. :)
$score .= "!Body1Pt" while $body =~ /$one_point_words/go;
$score .= "!!Body2Pt" while $body =~ /$two_point_words/go;
Technical Details
Message-ID:
<slrni1q6ji.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.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!feeder.erje.net!news.mixmin.net!.POSTED.ip6-localhost!not-for-mailReferences:
<hvj2u6$p6s$1@news.eternal-september.org> <slrni1q69q.rj2.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <slrni1q6ji.rj2.steve@news.mixmin.net> Subject: Re: Is filter on Date: Sat, 19 Jun 2010 19:28:50 +0000 From: Steve Crook <steve@mixmin.net> References: <hvj2u6$p6s$1@news.eternal-september.org> <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.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.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:28:50 +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: 18