πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81270

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

#81270
From: D. Stussy
Date: Fri, 05 Jun 2009 07:06
152 lines
7262 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:h09440$hgr$1@news.trigofacile.com...
> > 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.

You're reading into this an order that isn't [currently] stated.  I can
agree ONLY if there is an explicit ordering stated that indicates superset
through subset order, but no such order has been stated.

Are you certain that the default set is "everything" as opposed to nothing?
If so, then our first add won't add anything that's not already included,
just as if we started with nothing, an exclusion encountered first will
remove from nothing.  That doesn't get us anywhere.

> >> 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, no reason to specifically disallow it (should the standard be
changed in the future).

> > 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.*").

Because one can't remove nothing from nothing and expect a change.

> > 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).

The fact that the default action is applied (e.g. action "drop") means that
something is still done.

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

Yes, but we currently aren't looking at either of those files to determine
if removals exist.  The current procedure has made an assumption - one that
causes many duplicate actions (logging) to take place when it shouldn't.

> > 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 )".

OK, then how does the system know which hiearchy is to be emptied if the
control line had only "checkgroups" with no hierarchy name (or pattern)
defined?

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

But an empty message can fail to identify its hierarchy under the current
syntax (absent from the header and obviously absent from the body), and
therefore will do nothing.

Technical Details
Message-ID: <h0ag5v$r09$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!news.mb-net.net!open-news-network.org!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> <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> <h09440$hgr$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <h0ag5v$r09$1@aux.snarked.org>
Subject: Re: Another INN 2.5.0 rc2 bug - control.ctl processing
Date: Fri, 5 Jun 2009 00:06:39 -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> <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> <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!news.mb-net.net!open-news-network.org!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 152
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 1244185600 27657 71.106.211.188 (5 Jun 2009 07:06:40
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Fri, 5 Jun 2009 07:06:40 +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