πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81143

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

#81143
From: D. Stussy
Date: Sat, 30 May 2009 23:43
76 lines
4171 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gvqsba$6o2$1@news.trigofacile.com...
> > "If the control message is a newgroup or rmgroup, the third field,
> > <newsgroups>, is a shell-style pattern matching the  newsgroup affected
by
> > the control message (especially "?" matches exactly one character, "*"
> > matches zero or more characters and "|" permits to match several
patterns
> > on the same line -- for instance "comp.*|humanities.*"  matches every
> > newsgroup whose name begins with "comp." or "humanities.").  If the
control
> > message is a checkgroups, the third field is a shell-style pattern
matching
> > the newsgroups that should be processed for checking.  If the control
> > message is of any other type, the third field is ignored."
> >
> > If the control message is of type "all", the third field should be
matched,
> > not ignored.
>
> 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?  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.  That implies
to me that "all" is ignoring the group-matching parameter of these lines.

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.

> > This would be useful for protecting the specially named hierarchies
> > (control.*, to.*, local.*), defunct hierarchies, private hierarchies,
and
> > the default rules.  Otherwise, one has to repeat each rule three times
(for
> > newgroup, rmgroup, and checkgroups).
>
> I have just tested:
>
> newgroup:test@test:local.test:mail
> all:*:local.*:drop
>
> A newgroup article for local.test is properly dropped.
>
> 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.

Technical Details
Message-ID: <gvsgbm$gfm$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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gvsgbm$gfm$1@aux.snarked.org>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Sat, 30 May 2009 16:43:50 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$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!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 76
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 1243727030 16886 71.106.211.188 (30 May 2009 23:43:50
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sat, 30 May 2009 23:43:50 +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