Article View: news.software.nntp
Article #81254Re: Another INN 2.5.0 rc2 bug - control.ctl processing
From: Julien ÉLIE
Date: Thu, 04 Jun 2009 18:34
Date: Thu, 04 Jun 2009 18:34
115 lines
6016 bytes
6016 bytes
Hi D. Stussy,
> The syntax may be commutative, but the SEMANTICS of the operations are not.
> To exclude (and make sense), one first must have a non-empty set that is
> included. Should the exclusion be encountered first, one empties from an
> already empty set, and therefore the operation effectively does nothing.
checkgroups hr !hr.admin #2009060401
checkgroups !hr.admin hr #2009060401
are equivalent, as well as:
cat checkgroups | grep "^hr" | grep -v "^hr\.admin"
cat checkgroups | grep -v "^hr\.admin" | grep "^hr"
Do not forget that the syntax is:
control-command =/ Checkgroup-command
Checkgroup-command = "checkgroups" Checkgroup-arguments
Checkgroup-arguments= [ chkscope ] [ chksernr ]
chkscope = 1*( 1*WSP ["!"] newsgroup-name )
chksernr = 1*WSP "#" 1*DIGIT
We can have "checkgroups" with no arguments.
Just consider that "checkgroups" means that we take *everything* (the
initial set). Then we add/remove.
>> instead of the counter? This way, we could use @newbody and not execute
>> the rest of the function if @newbody is empty.
>>
>> Wouldn't it fix your issue?
>
> Not necessarily. As I noted, if there is any body text not part of a group
> listing (like a descriptive paragraph at the top meant for people), then
> this will NOT be the same. Any such text (if allowed) would be removed
Such a text is NOT allowed.
There is no descriptive paragraph at the top (or bottom) of a checkgroups.
checkgroups-body = *( valid-group CRLF )
valid-group = newsgroups-line
newsgroups-line = newsgroup-name
[ 1*HTAB newsgroup-description ]
[ *WSP moderation-flag ]
> However, if the standards guarente that there won't be any extra text in
> the message body, and we don't care to have a counter of groups found in
> the message, then so be it.
The standard says that. We then won't have to parse descriptive paragraphs.
>> checkgroups:*:foo.bar.*:log=ignore
>>
>> the checkgroups will NOT be logged any longer in your log file and
>> therefore you will NEVER know that foo.bar.misc has been removed.
>
> Would it have been logged before the change? "foo.bar.misc" is absent from
> the checkgroups message, so the group filter results in a NULL set for the
> log command. Therefore, what gets logged is the original message.
Yes, the original message was logged before the change. In log files,
only *whole* messages are logged and you could then have acted upon it.
> However, that's not the step that actually removes it. When a different
> control.ctl line (one matching "foo.*") is found, that's the line that
> causes the removal operation to happen.
Why wouldn't "foo.bar.*" not remove "foo.bar.defunct"?
If I only want the subhierarchy "foo.bar.*" (imagine "alt.fr.*" for French
people), I will process "foo.bar.*", not "foo.*" (the whole "alt.*").
> Basically, as far as one is
> concerned, one received a checkgroups message that is EMPTY with regard to
> "hierarchy.sub.*", so if the message pertained only to that sub-hierarchy,
> it would have a EMPTY BODY, so what is there to log?
That the sub-hierarchy is defunct. You would otherwise never know
(see my previous example with "alt.fr.*" -- yeah I know that there aren't
any checkgroups for alt.* but that's just an example and I can do the
same for instance with "news.admin.*" only).
> There are no groups
> that match the pattern, so why shouldn't the line be ineffective?
Lines to remove in the newsgroups file, groups to remove from the active
file...
> Is it even possible to send a checkgroups message for an empty hierarchy?
checkgroups-body = *( valid-group CRLF )
Then, yes. It is not "1*( valid-group CRLF )".
> The way I see things, one can reduce a top-level hierarchy down to a single
> group via checkgroups, but then an rmgroup message must be used to remove
> that final group.
Not necessarily. A checkgroups can be empty.
--
Julien ÉLIE
« Il paraît que lorsque l'on prête l'oreille, on entend mieux. C'est faux !
Il m'est arrivé de prêter l'oreille à un sourd. Il n'entendait pas mieux. »
(Raymond Devos)
Technical Details
Message-ID:
<h09440$hgr$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-mailReferences:
<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> <h02hfe$bki$1@news.trigofacile.com> <h04a6c$44k$1@aux.snarked.org> <h06c9j$tv7$1@news.trigofacile.com> <h07f8m$g3t$1@aux.snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <h09440$hgr$1@news.trigofacile.com> Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing Date: Thu, 4 Jun 2009 20:34:35 +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> <h02hfe$bki$1@news.trigofacile.com> <h04a6c$44k$1@aux.snarked.org> <h06c9j$tv7$1@news.trigofacile.com> <h07f8m$g3t$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: 115 NNTP-Posting-Host: aaubervilliers-151-1-23-184.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 1244140481 17947 83.114.142.184 (4 Jun 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Thu, 4 Jun 2009 18:34:41 +0000 (UTC) In-Reply-To: <h07f8m$g3t$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