Article View: news.software.nntp
Article #80373Re: Cleanfeed vs. "meow" groups.
From: Steve
Date: Wed, 11 Mar 2009 13:36
Date: Wed, 11 Mar 2009 13:36
60 lines
3373 bytes
3373 bytes
On Wed, 11 Mar 2009 10:40:52 +0000 (UTC), Steve wrote in
Message-Id: <slrngrf59k.690.steve@news.mixmin.net>:
> One solution I'm considering is merging @groups and @followups and
> removing duplictates to create a @grfu. Taking our previous examples:
The following diff shows some changes I'm trying, (against current svn).
Currently this only alters the meow reject behaviour but can be easily
extended to other filters if judged to be more appropriate.
I've also added a fupcnt and a grpfupcnt, grpcnt already existed. Don't
know why there wasn't a fupcnt before as 'scalar @followups' was
evaluated at numerous places throughout the code.
Index: cleanfeed
===================================================================
--- cleanfeed (revision 190)
+++ cleanfeed (working copy)
@@ -538,9 +538,14 @@
} else {
@followups = @groups;
}
+ # Create a merged array of groups and followups with no duplicates
+ my %merge = ();
+ my @grpfup = grep { ! $merge{ $_ }++ } (@groups, @followups);
# Count the number of groups in the distribution
$grpcnt = scalar @groups;
+ $fupcnt = scalar @followups;
+ $grpfupcnt = scalar @grpfup;
trimhashes() if $now - $Last_Trim >= $config{trim_interval};
writestats() if $now - $Last_Stats >= $config{stats_interval};
@@ -570,8 +575,6 @@
and /$config{spam_report_groups}/o;
$gr{low_xpost}++ if $config{low_xpost_groups}
and /$config{low_xpost_groups}/o;
- $gr{meow}++ if $config{meow_groups}
- and /$config{meow_groups}/o;
$gr{no_cancel}++ if $config{no_cancel_groups}
and /$config{no_cancel_groups}/o;
$gr{test}++ if /$config{test_groups}/o;
@@ -585,6 +588,12 @@
}
}
+ # Check Newsgroups and Followup-To groups in the message
+ for (@grpfup) {
+ $gr{meow}++ if $config{meow_groups}
+ and /$config{meow_groups}/o;
+ };
+
# these only count if all groups match
$gr{skip} = ($gr{skip} == $grpcnt);
$gr{fslskip} = ($gr{fslskip} == $grpcnt);
--
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:
<slrngrffim.690.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!news.mixmin.net!not-for-mailReferences:
<gp4b26$nl3$1@aux.snarked.org> <slrngrci3q.6et.steve@news.mixmin.net> <slrngrcsmp.6et.steve@news.mixmin.net> <gp6q98$k66$1@aux.snarked.org> <slrngrf59k.690.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <slrngrffim.690.steve@news.mixmin.net> Subject: Re: Cleanfeed vs. "meow" groups. Date: Wed, 11 Mar 2009 13:36:22 +0000 From: Steve <steve@mixmin.net> References: <gp4b26$nl3$1@aux.snarked.org> <slrngrci3q.6et.steve@news.mixmin.net> <slrngrcsmp.6et.steve@news.mixmin.net> <gp6q98$k66$1@aux.snarked.org> <slrngrf59k.690.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!news.mixmin.net!not-for-mail Newsgroups: news.software.nntp Organization: Mixmin Lines: 60 NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@mixmin.net NNTP-Posting-Date: Wed, 11 Mar 2009 13:36:22 +0000 (UTC) User-Agent: slrn/pre1.0.0-2 (Linux)