Article View: news.software.nntp
Article #80362Re: Cleanfeed vs. "meow" groups.
From: D. Stussy
Date: Tue, 10 Mar 2009 22:40
Date: Tue, 10 Mar 2009 22:40
101 lines
4914 bytes
4914 bytes
"Steve" <steve@mixmin.net> wrote in message
news:slrngrcsmp.6et.steve@news.mixmin.net...
> On Tue, 10 Mar 2009 11:01:14 +0000 (UTC), Steve wrote in
> Message-Id: <slrngrci3q.6et.steve@news.mixmin.net>:
>
> > return reject('Too many newsgroups (meow)', 'Too many newsgroups')
> > if $gr{meow}
> > and $gr{meow} != scalar @groups
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > and $config{meow_ext_maxgroups}
> > and (scalar @followups - $gr{meow}) >
$config{meow_ext_maxgroups};
>
> That check is probably redundant. All eventualities I can think of are
> caught by the final condition and performance isn't optimized by it in
> any way I can see.
I agree. $gr{meow} != scalar @groups is taken care of in the last
comparison.
> My brain is looping on the @groups vs. @followups at the moment. In
> Cleanfeed, @followups is set to @groups unless a Followup-To is defined.
Two cases:
1) Followups == groups. Then it doesn't matter if we use @followups or
@groups - they should be the same. However, I consider that a special case
as its usually but not always true.
2) Followups != groups. As I said in my original post, don't we have to
count how many meow groups are in @followups?
You used:
and (scalar @followups - $gr{meow}) > $config{meow_ext_maxgroups};
while I used:
and scalar @followups > ($config{meow_ext_maxgroups} + $fugr{meow});
Subtracting on the left or adding on the right is mathematically
equivalent. However, $gr{meow} is equivalent to $fugr{meow} only when
@groups == @followups. When the followup list is different, $fugr{meow} ?=
$gr{meow} (may or may not be equal).
> So, assuming meow_ext_groups=2:
> Newsgroups: meow1,foo,bar,baz
> Will be rejected (4-1=3).
Agreed. (4-1 > 2).
> Newsgroups: meow1,foo,bar,baz
> Followup-To: foo,bar,baz
> Will be accepted (3-1=2).
Should NOT be accepted. Math: (3-0 > 2) => reject. There is no meow
group in the followup list. The maximum non-meow groups is 2.
> Newsgroups: meow1,foo,bar,baz
> Followup-To: foo,baz,baz,qux
> Will be rejected (4-1=3).
Math should be (4-0 > 2) => reject.
> This may be precisely the logic the originator was looking for in order
> to stop meow wars spreading.
Maybe we need TWO conditionals: One for @groups and one for @followups?
However, we only have one. Consider this:
return reject('Too many newsgroups (meow)', 'Too many newsgroups')
if $gr{meow} and
(scalar @groups - $gr{meow}) > $config{meow_ext_maxgroups};
return reject('Too many follow-up groups (meow)', 'Too many follow-up
groups')
if $fugr{meow} and
(scalar @followups - $fugr{meow}) > $config{meow_ext_maxgroups};
The first checks the "Newsgroups:" line and the second checks the
"Followup-To:" line. $fugr{meow} only needs to be computed if there's an
explicit followup header. Otherwise, all corresponding values will match
their equivalents in the "Newsgroups:" comparsion.
Algorithmic differences:
- For posts originating in meow groups, this should limit the spread to 2
non-meow groups as expected by the original design.
- For posts originating outside of meow groups, but a followup directed to
at least one, this will limt the followup to 2 non-meow groups at most
(even if more non-meow groups existed in the original post). This could
reject posts that the filter didn't reject before, as it can cause posts
that this filter would previously skip to be classified by it.
A post to 3 non-meow groups with followups to a meow-group plus 2 others
would be accepted.
A post to 3 non-meow groups with followups to a meow-group plus the
original 3 would NOW be rejected, where it wasn't before (but maybe should
have been).
Technical Details
Message-ID:
<gp6q98$k66$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.k-dsl.de!news.snarked.org!not-for-mailReferences:
<gp4b26$nl3$1@aux.snarked.org> <slrngrci3q.6et.steve@news.mixmin.net> <slrngrcsmp.6et.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <gp6q98$k66$1@aux.snarked.org> Subject: Re: Cleanfeed vs. "meow" groups. Date: Tue, 10 Mar 2009 15:40:41 -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> 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.k-dsl.de!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 101 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 1236724840 20678 71.106.211.188 (10 Mar 2009 22:40:40 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Tue, 10 Mar 2009 22:40:40 +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