🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82608

Re: INN and "ovgrouppat" - bug?

#82608
From: Julien ÉLIE
Date: Sun, 17 Jan 2010 10:19
57 lines
3814 bytes
Hi D. Stussy,

>>> 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.

No, the code is really using "@" for "!".


> 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.

No.  There is no overview generation when stepping through the Xref: header.
The check of ovgrouppat is done before the overview generation.  Either
there is *no* overview data or *all* groups have overview data for the
article.

    if (innconf->ovgrouppat != NULL) {
        memcpy(patcheck, next, xreflen);
        patcheck[xreflen] = '\0';
        for (group = patcheck; group && *group; group = memchr(nextcheck, ' ', xreflen - (nextcheck - patcheck))) {
            while (isspace((int)*group))
                group++;
            if ((nextcheck = memchr(group, ':', xreflen - (patcheck - group))) == NULL)
                return OVADDFAILED;
            *nextcheck++ = '\0';
            if (!OVgroupmatch(group)) {
                if (!SMprobe(SELFEXPIRE, &token, NULL) && innconf->groupbaseexpiry)
                    /* This article will never be expired, since it does not
                       have self expiry function in stored method and
                       groupbaseexpiry is true. */
                    return OVADDFAILED;
                return OVADDGROUPNOMATCH;
            }
        }
    }

-- 
Julien ÉLIE

« La perfection est atteinte non pas lorsqu'il n'y a plus rien à ajouter,
  mais lorsqu'il n'y a plus rien à retirer. » (Saint-Exupéry) 
Technical Details
Message-ID: <hiuo7h$3tq$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!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-66-216.w81-48.abo.wanadoo.fr!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> <hiuf6r$a7k$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <hiuo7h$3tq$1@news.trigofacile.com>
Subject: Re: INN and "ovgrouppat" - bug?
Date: Sun, 17 Jan 2010 11:19:30 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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> <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.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-151-1-66-216.w81-48.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 57
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Jan 2010 10:19:29 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-66-216.w81-48.abo.wanadoo.fr:81.48.9.216";
 logging-data="4026"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <hiuf6r$a7k$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