🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81148

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

#81148
From: Julien ÉLIE
Date: Sun, 31 May 2009 09:41
97 lines
4901 bytes
Hi D. Stussy,

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


> 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=ignored
>
> 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: <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.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com> <gvsgbm$gfm$1@aux.snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <gvtjcl$nmf$1@news.trigofacile.com>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Sun, 31 May 2009 11:41:33 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gvpshs$7c4$1@aux.snarked.org> <gvqsba$6o2$1@news.trigofacile.com> <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!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 97
NNTP-Posting-Host: aaubervilliers-151-1-45-218.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1243762901 24271 83.114.135.218 (31 May 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sun, 31 May 2009 09:41:41 +0000 (UTC)
In-Reply-To: <gvsgbm$gfm$1@aux.snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049