Article View: news.software.nntp
Article #80376Re: Cleanfeed vs. "meow" groups.
From: D. Stussy
Date: Thu, 12 Mar 2009 00:14
Date: Thu, 12 Mar 2009 00:14
95 lines
4818 bytes
4818 bytes
My suggestion as a diff:
!diff -u /var/lib/news/bin/filter/filter_innd.pl
/var/lib/news/bin/filter/filter_innd.pl
--- /var/lib/news/bin/filter/filter_innd.pl 2009-03-10 00:00:00.000000000
+0000
+++ /var/lib/news/bin/filter/filter_innd.pl 2009-03-10 00:00:00.000000000
+0000
@@ -531,6 +531,7 @@
}
# Count the number of groups in the distribution
+ $fugcnt = scalar @followups;
$grpcnt = scalar @groups;
trimhashes() if $now - $Last_Trim >= $config{trim_interval};
@@ -578,6 +579,10 @@
# Reject bad groups
return reject("Bad group ($_)", 'Bad group') if exists
$Bad_Groups{$_};
}
+ for (@followups) {
+ $fugr{meow}++ if $config{meow_ext_maxgroups}
+ and /$config{meow_groups}/o;
+ }
# these only count if all groups match
$gr{skip} = ($gr{skip} == $grpcnt);
@@ -689,34 +694,38 @@
if $gr{rg_net} and $hdr{Distribution} !~ /^[ \t]*4[Gg][Hh][
\t]*$/;
return reject('U2 violation - excessive crossposting', 'U2
violation')
- if $gr{rg_net} and scalar @followups > 3;
+ if $gr{rg_net} and $fugcnt > 3;
return reject('bofh violation - excessive crossposting','U2
violation')
- if $gr{rg_bofh} and scalar @followups > 3;
+ if $gr{rg_bofh} and $fugcnt > 3;
return reject('bofh violation - invalid distribution', 'U2
violation')
if $gr{rg_bofh}
- and $hdr{Distribution} !~ /^[ \t]*[Bb][Oo][Ff][Hh][
\t]*$/;
+ and $hdr{Distribution} !~ /^[ \t]*BOFH[ \t]*$/i;
return reject('Too many newsgroups')
- if scalar @followups > $config{maxgroups};
+ if $fugcnt > $config{maxgroups};
return reject('Too many newsgroups (low_xpost)', 'Too many
newsgroups')
if $gr{low_xpost}
- and scalar @followups > $config{low_xpost_maxgroups};
+ and $fugcnt > $config{low_xpost_maxgroups};
return reject('Too many newsgroups (meow)', 'Too many newsgroups')
- if $gr{meow} and $gr{meow} != scalar @groups
- and scalar @followups > $config{meow_ext_maxgroups};
+ if $gr{meow}
+ and ($grpcnt - $gr{meow}) > $config{meow_ext_maxgroups};
+
+ return reject('Too many follow-up groups (meow)', 'Too many
followups')
+ if $fugr{meow}
+ and ($fugcnt - $fugr{meow}) > $config{meow_ext_maxgroups};
return reject('Too many test groups in crosspost',
'Too many newsgroups') if $gr{test} > 2;
return reject('Excessively crossposted test article',
- 'Too many newsgroups') if $gr{test} and scalar @followups > 4;
+ 'Too many newsgroups') if $gr{test} and $fugcnt > 4;
return reject('Adult group ECP', 'Too many newsgroups')
- if scalar @followups > 6 and $gr{adult} > scalar @groups / 2;
+ if $fugcnt > 6 and $gr{adult} > scalar @groups / 2;
return reject('Poison newsgroup') if $gr{poison};
@@ -1025,7 +1034,7 @@
# and $lch{'message-id'} !~ /webtv\.net>$/;
# Score poor netiquette on Follow-up's
- $score .= "!!ExpFollowup" if scalar @followups > $grpcnt;
+ $score .= "!!ExpFollowup" if $fugcnt > $grpcnt;
$score .= "!NoFollowup" if $grpcnt > 1 and not
$hdr{Followup-To};
$score .= "!NoFollowup2" if $grpcnt > 3 and not
$hdr{Followup-To};
Technical Details
Message-ID:
<gp9k5m$3pd$1@aux.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.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.mb-net.net!open-news-network.org!news.snarked.org!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> <slrngrffim.690.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <gp9k5m$3pd$1@aux.snarked.org> Subject: Re: Cleanfeed vs. "meow" groups. Date: Wed, 11 Mar 2009 17:14:43 -0700 From: "D. Stussy" <spam@bde-arc.ampr.org> 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> <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!newsfeed.straub-nv.de!news.mb-net.net!open-news-network.org!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 95 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net X-Trace: aux.snarked.org 1236816887 3885 71.106.211.188 (12 Mar 2009 00:14:47 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Thu, 12 Mar 2009 00:14:47 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478