πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82605

Re: INN and "ovgrouppat" - bug?

#82605
From: D. Stussy
Date: Sun, 17 Jan 2010 07:45
54 lines
3674 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87vdf1ic39.fsf@windlord.stanford.edu...
> "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> > "Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote:
> >> I have just added that precision to the inn.conf documentation for
> >> ovgrouppat:
>
> >> Note that the use of "!" in this wildmat expression has the same
> >> meaning as "@", that is to say it is a poisoned match and the overview
> >> data will not be generated if one of the newsgroups an article is
> >> posted to is unwanted.
>
> Why in this situation do we not use the more typical meaning of "!" and
> "@" and keep generating overview unless every newsgroup to which it's
> posted does not match or unless it matches a poisoned pattern?  The code
> structure just doesn't allow for it?

Because that's not what the code is actually doing.

It selects for storage overview data for ALL groups not excluded by the
string.
It skips for storage overview data for any group that matches an excluded
element.

As it tests this by stepping through the "Xref:" header one group at a
time, it can't skip all when it finds a poisoned element.  "@" is
operationally no different from "!" with the current implementation.

> > If we go with the above, it would be better to disallow "@" from the
> > string.  Only "!" should be allowed.  The way this is currently
> > implemented, there is no such thing as a "poison" group.  Either a
group
> > has an overview or not, and a crossposted article will have overview
> > data in those groups where overview data is permitted even when it
isn't
> > for other groups.
>
> Don't you have that backwards?  We would have to disallow "!", not "@",
> since the meaning is always the same as "@" would be.

No.  "@" has no meaning separate from "!" and is therefore redundant, as
implemented.

> Remember, "!" and "@" are equivalent unless you're matching a crossposted
> article, in which case the intended semantics is that if *any* group to
> which the article is posted matches, that article matches, unless it
> matches a poisoned pattern.

Such is NOT what this is doing (for "ovgrouppat").  That's the problem.
OVcheckpat() returns only true and false.  To process poisoned groups, we
need THREE return states - and we need to check every group before storing
the overview (in OVadd()) for any of them.

Technical Details
Message-ID: <hiuf6r$a7k$1@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.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
References: <hihikq$hje$1@snarked.org> <hiiie2$3ur$1@news.trigofacile.com><hism7f$rn3$1@news.trigofacile.com> <hiu3cd$715$1@snarked.org> <87vdf1ic39.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <hiuf6r$a7k$1@snarked.org>
Subject: Re: INN and "ovgrouppat" - bug?
Date: Sat, 16 Jan 2010 23:45:20 -0800
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <hihikq$hje$1@snarked.org> <hiiie2$3ur$1@news.trigofacile.com><hism7f$rn3$1@news.trigofacile.com> <hiu3cd$715$1@snarked.org> <87vdf1ic39.fsf@windlord.stanford.edu>
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.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 54
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-53-20.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1263714331 10484 71.118.53.20 (17 Jan 2010 07:45:31 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Sun, 17 Jan 2010 07:45:31 +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