Article View: news.software.nntp
Article #82561Re: INN and "ovgrouppat" - bug?
From: Julien ÉLIE
Date: Tue, 12 Jan 2010 19:27
Date: Tue, 12 Jan 2010 19:27
53 lines
3410 bytes
3410 bytes
Hi D. Stussy,
> I had the occasion to read the OVgroupmatch() subroutine in
> storage/expire.c (about line 816), and I'm not certain that it follows the
> general poisoned-wildmat rules.
You're right. Thanks for having spotted that.
> Instead of "return false;", should we have a "wanted = false;"? This would
> make the conditional under case "!" and before case "@" unnecessary.
> Alternatively, we could loop through the patterns from high to low (right
> to left) instead of low to high (left to right) and return on the first
> (rightmost) match (whether true or false).
In fact, "!" and "@" have the same meaning in that function. There is only
a group to compare, and the notion of crosspost is irrelevant. It looks
as though it is always a poison for the overview data: if one of the newsgroups
an article is crossposted to matches in OVgroupmatch(), then the article
is not stored -- see OVadd() in storage/ov.c.
So maybe it is OVadd() that needs fixing to take that into account...
As for OVgroupmatch(), here is what I would see:
for (i = 0; i < OVnumpatterns; i++) {
switch (OVpatterns[i][0]) {
case '!':
case '@':
if (uwildmat(group, &OVpatterns[i][1])) {
wanted = false;
}
break;
default:
if (uwildmat(group, OVpatterns[i]))
wanted = true;
}
}
return wanted;
I case OVadd() is to be fixed, maybe we should send three different values
(UWILDMAT_MATCH, UWILDMAT_FAIL, and UWILDMAT_POISON). This way, OVadd()
could properly decide whether to store the article in the overview data.
--
Julien ÉLIE
« Un dictionnaire est comme une montre ; il vaut mieux en avoir un
que pas du tout, mais le meilleur n'est jamais tout à fait exact. »
(Georges-Bernard Shaw)
Technical Details
Message-ID:
<hiiie2$3ur$1@news.trigofacile.com>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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-8-94.w83-114.abo.wanadoo.fr!not-for-mailReferences:
<hihikq$hje$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <hiiie2$3ur$1@news.trigofacile.com> Subject: Re: INN and "ovgrouppat" - bug? Date: Tue, 12 Jan 2010 20:27:02 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <hihikq$hje$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-8-94.w83-114.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 53 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Tue, 12 Jan 2010 19:26:58 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-8-94.w83-114.abo.wanadoo.fr:83.114.7.94"; logging-data="4059"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <hihikq$hje$1@snarked.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005 X-Original-Bytes: 3129