🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81170

Re: Another INN 2.5.0 rc2 bug - control.ctl processing

#81170
From: D. Stussy
Date: Sun, 31 May 2009 21:36
125 lines
5812 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gvtjcl$nmf$1@news.trigofacile.com...
> >> The third field is currently matched for "all".
> >> "all" is not a control message type; it matches every control message
and
> >> applies to all of them.
> >
> > Are we certain it's being matched?
>
> Yes.
>
>
> > The behavior I see implies it's being ignored.
> >
> > I have lines like the following (which is real) from control.ctl.local:
> >
> >
all:*:acay.*|air.*|alive.*|alot.*|america.*|apc.*|au.*|betanews.*:log=defun
ct
> >
> > When the recent "checkgroups hr.*" came in, I got "X" copies of it into
my
> > "~news/log/defunct" file, where X is the number of lines like the above
> > one.  I also got it for similar lines of hierarchies that I map to
> > "...log/private" and "...log/presumed" (hierarchies presumed to be
> > private), one for each line of groups in control.ctl.local.
>
> Please read the EXAMPLES section in the same man page.
> You will see that there are *5* actions done for:
>
>     checkgroups:foo@bar.com:foo.*:verify-key-foo
>     checkgroups:foo@bar.com:foo.bar2.*:doit
>     checkgroups:foo@bar.com:foo.bar3.*:mail
>     checkgroups:foo@bar.com:foo.bar4|foo.bar4.*:doit
>     checkgroups:foo@bar.com:foo.bar5|foo.bar5.*:drop
>
> It is the same if you put X copies af "all" with a log action.

So, for each of my "log=ignore" lines, when a checkgroups comes it, it will
MATCH all of those lines?  It will also extract all of the groups matched
(e.g. for "hr.*", this will be a null set) and feed that to checkgroups?
Therefore, since the hierarchy of the checkgroups didn't match, it
"processed" a NULL checkgroups message for each line?  And since I have
"all:...:log=ignore" lines 14 times in my control.ctl.local file, that's
why the "hr.*" checkgroups message appears 14 times in ".../log/ignored"?

That is clearly not what was expected.  I would expect that if the
resulting checkgroups group (sub-)set that matches is NULL, it would NOT
match and therefore NOT be recorded into the log file(s).  NULL should not
match "*".

> > That implies
> > to me that "all" is ignoring the group-matching parameter of these
lines.
>
> The group-matching parameter is not ignored at all.  Only the newsgroups
> matching your lines would have been extracted from the checkgroups (had
you
> used something like "mail" or "doit").
>
>
> > In contrast, with respect to the line:
> >
> >
newgroup:*:h[0-9a-z]pc[lr][0-9a-z]me|cr[0-9a-z]meh[0-9a-z]p|*eijk*:log=igno
red
> >
> > The checkgroups message did NOT end up in the "...log/ignored" file -
since
> > newgroup does check parameter #3 for group names.
>
> A newgroup control article matches only *one* line.  If it does not match
> this one, no action is done.
>
>
> >> I do not understand what you would want.  Only a documentation issue?
> >> Then, what should be added and where?
> >
> > Not just a documentation issue.
"all:*:group1.*|group2.*:log=somewhere"
> > needs to honor the group list because it includes the 3 ".*groups?"
> > operators.  I believe that the documented behavior is wrong.  As
written,
> > "all" ignores the group string, and that's what I'm seeing, but when
all is
> > applied against the 3 group operators, the group list should be
recognized.
> > Currently, it's not.
> >
> > Please test it again, this time specifying multiple hierarchies
separated
> > by "|" and see if it works or fails.
>
> I have tested and the behaviour is correct:  the third field is honoured,
> even with multiple patterns.
> Checkgroups work differently than other control messages.
>
>     checkgroups:*:acay.*:log=defunct
>
> As it is "*" for the sender, the line matches.  Then we extract all lines
> containing "acay.*" in the checkgroups and process the message.
>
> Please note that the behaviour is the same if for instance you specify
> something like:
>
>     checkgroups:*:*a*:log=defunct
>
> which only takes into account newsgroups containing the letter "a".
> The message is processed.
>
> We need a generic parsing in order to handle all possible edge cases
> with checkgroups.
> If you have a better algorithm than what is currently implemented,
> feel free to tell.  (And I recall you that neither checkgroups scopes
> nor serial numbers are implemented in INN 2.5.0.  They are new features
> of RFC 5537 [USEPRO].)
>
> -- 
> Julien ÉLIE
>
> « Quae longo tempore extenuentur corpora,
>   lente reficere oportet. » (Hippocrate)
>

Technical Details
Message-ID: <gvut8f$l3m$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.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: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com> <gvsgbm$gfm$1@aux.snarked.org> <gvtjcl$nmf$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gvut8f$l3m$1@aux.snarked.org>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Sun, 31 May 2009 14:36:15 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com> <gvsgbm$gfm$1@aux.snarked.org> <gvtjcl$nmf$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.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: 125
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 1243805775 21622 71.106.211.188 (31 May 2009 21:36:15
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sun, 31 May 2009 21:36:15 +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