🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81191

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

#81191
From: Julien ÉLIE
Date: Tue, 02 Jun 2009 06:39
66 lines
4278 bytes
Hi D. Stussy,

> Well , if the pattern were "all:*:hierarchy1.*|*a*:log=...", then
> "hierarchy5.*" would match, so I don't see a problem.

It was just an example for "*a*"...  Then consider "*z*".


>> "hierarchy5" is not matched by "/.*binaries.*/" at all and therefore not
>> taken into account.
>
> Exactly the result I would expect.  Remember that the checkgroups parameter
> is the hierarchy name (or pattern), not a fully-specified group name.  One
> is comparing the hierarchy ROOT, not the names of groups therein.

We're applying the pattern at the group name level here, as said in the
documentation.  Not at the top hierarchy level.

  "If the control message is a checkgroups, the third field is a shell-style
  pattern matching the newsgroups that should be processed for checking."


>> The same goes for a lot of other checkgroups features!
>> Besides, the patch totally breaks "checkgroups !hr.admin hr".
>
> Which, as I understand it, is incorrect - as exclusion patterns must trail.

Where do you see that exclusion patterns *must* trail?!?

      control-command     =/ Checkgroup-command
      Checkgroup-command  = "checkgroups" Checkgroup-arguments
      Checkgroup-arguments= [ chkscope ] [ chksernr ]
      chkscope            = 1*( 1*WSP ["!"] newsgroup-name )
      chksernr            = 1*WSP "#" 1*DIGIT


> I think that what you're telling me is that the process is comparing the
> lines against individual groups filtering the contents of the checkgroups
> message, but the problem is that when NOTHING matches, it's still executing
> the action from control.ctl.  That's why it's wrong.  Where there's no
> match, nothing should be done.

I understand that point.  Note that nothing is currently done (except when
the action is "log" -- and it is something I will try to improve).


> Checkgroups doesn't match the "last" line;
> as implemented, it matches ALL lines from control.ctl (with a matching
> message sender), such being contrary to "Lines are matched in order and the
> last matching line in the file will be used" (from the manual page).
> Matching all lines isn't matching just the last.

I think you are skipping the last part of the sentence...
which is present in INN 2.5.0 rc2 (according to the subject of your thread):

  http://www.eyrie.org/~eagle/software/inn/docs/control.ctl.html

    "Lines are matched in order and the last matching line in the file will
    be used, except for checkgroups messages which are handled differently
    (every matching line is used)."

-- 
Julien ÉLIE

« Dragon, rends-moi mes cornes ! » (le coq à l'aube) 
Technical Details
Message-ID: <h02hfe$bki$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!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.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> <gvtjcl$nmf$1@news.trigofacile.com> <gvut8f$l3m$1@aux.snarked.org> <gvv0ha$21b$1@news.trigofacile.com> <gvv6uq$mvv$1@aux.snarked.org> <h004v2$4d1$1@news.trigofacile.com> <h025go$vin$1@aux.snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <h02hfe$bki$1@news.trigofacile.com>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Tue, 2 Jun 2009 08:39:34 +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> <gvtjcl$nmf$1@news.trigofacile.com> <gvut8f$l3m$1@aux.snarked.org> <gvv0ha$21b$1@news.trigofacile.com> <gvv6uq$mvv$1@aux.snarked.org> <h004v2$4d1$1@news.trigofacile.com> <h025go$vin$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!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.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: 66
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 1243924782 11922 83.114.135.218 (2 Jun 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Tue, 2 Jun 2009 06:39:42 +0000 (UTC)
In-Reply-To: <h025go$vin$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