🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82644

Re: INN and "ovgrouppat" - bug?

#82644
From: Julien ÉLIE
Date: Fri, 22 Jan 2010 23:25
50 lines
3312 bytes
Hi D. Stussy,

> @ - As OVgroupmatch() is called ONLY from one place, OVadd(), from inside a
> conditional that checked for innconf->ovgrouppat != NULL, and from inside a
> loop that makes certain that group != NULL, the conditional inside the
> function optimizes out completely - effectively:
>
> #define OVgroupmatch(x) uwildmat_poison(x,innconf->ovgrouppat)

You're totally right.  It greatly simplifies the code (and removes the need
of OVgroupmatch, OVnumpatterns and OVpatterns).
    http://inn.eyrie.org/trac/changeset/8917/trunk



> BTW,  switch may be cleaner than if-elseif.  (Lines 205-215 of storage/ov.c
> become):
>
>            switch(uwildmat_poison(group, innconf->ovgrouppat)){
>                case UWILDMAT_FAIL:
>                    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;
>                case UWILDMAT_FAIL:
>                    return OVADDGROUPNOMATCH;
>            }

The second case is for UWILDMAT_POISON.
Anyway, I kept the if-elseif.  Not a big deal, though.



> ...And now that we're using an actual wildmat call, there are no
> documentation changes.  ;-)

Only that:

-matching this comma-separated list of wildmat expressions.  Newsgroups not
+matching this comma-separated list of uwildmat(3) expressions.  Newsgroups not

-- 
Julien ÉLIE

« Boire du café empêche de dormir. Par contre, dormir empêche de boire
  du café. » (Philippe Geluck) 
Technical Details
Message-ID: <hjdc65$eas$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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-29-164.w83-112.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> <hiutsh$etq$1@news.trigofacile.com> <hj0q1j$ggh$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <hjdc65$eas$1@news.trigofacile.com>
Subject: Re: INN and "ovgrouppat" - bug?
Date: Sat, 23 Jan 2010 00:25:57 +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> <hiutsh$etq$1@news.trigofacile.com> <hj0q1j$ggh$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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-29-164.w83-112.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 50
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Jan 2010 23:25:57 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-29-164.w83-112.abo.wanadoo.fr:83.112.20.164";
 logging-data="14684"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <hj0q1j$ggh$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: 3122