Article View: news.software.nntp
Article #81963Re: A couple of suggestions for INN 2.5.1 (with patch)
From: D. Stussy
Date: Tue, 06 Oct 2009 20:57
Date: Tue, 06 Oct 2009 20:57
74 lines
5101 bytes
5101 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hag65j$fhq$1@news.trigofacile.com...
> Hi D. Stussy,
>
> > I found some inconsistencies when one converts a group flag to 'n' (as
> > RFC 3977 suggests that 'y', 'm', and 'n' are the only universally known
> > flags). INN appeared to do this for "LIST ACTIVE" but NOT in
"NEWGROUPS"
> > or "LIST ACTIVE no-wildcard-group" commands. Any unknown flag, not
just
> > 'j' or 'x', will now be converted to 'n' for all three commands.
>
> For 'y', 'm' and 'n':
> The server SHOULD use these values when these meanings are required
> and MUST NOT use them with any other meaning. Other values for the
> status may exist; the definition of these other values and the
> circumstances under which they are returned may be specified in an
> extension or may be private to the server. A client SHOULD treat an
> unrecognized status as giving no information.
Correct. That's why I said "universally known" above.
If you look at the code before my patch, you will find that INN already
converts 'j' and 'x' to 'n' for "LIST [ACTIVE]" but NOT for "NEWGROUPS".
"LIST ACTIVE *" will also emit aliased groups while "LIST ACTIVE
single.non.wildcarded.group" will NOT. One of the two reasons for the
patch is to fix this inconsistent behavior, making it consistent across all
versions of output of the active group listings. "NEWGROUPS" output
performed NO alterations nor filtering.
The consistent behavior that the patch causes is: 'j' and '=' groups are
excluded from all three output routines, and 'x' groups (and anything else
not 'y', 'm', or 'n') get converted to 'n' in all places. Although RFC
3977 doesn't mandate that these 3 flags be the exclusive choices, they
appear to be the only ones defined in any RFC. I found no later RFC that
defined any additional flag value; thus, 'j', 'x', and '=' are really
internal values for INN. Except for the pseudogroups (control(\..+)?,
junk, and to - which all work when marked with 'x'), no group with these
latter 3 flags will ever accept postings, and as such being effectively
equivalent to permanently empty groups, they don't really exist. For 'j'
and '=', the articles will show up respectively in junk and the alias group
which is typically listed.
nnrpd/commands.c is where NEWGROUPS is implemented. Only 2 lines are
added.
nnrpd/list.c is where "LIST ACTIVE" is implemented. The operational
changes are to exclude 'j' groups ('=' aliased groups are already excluded
in one place but not the other) and to convert unknown flag values (not
among the 3 from RFC 3977; really, just 'x') to 'n'.
> I believe the best move would be to document the other values you suggest
> to hide, and not modify the output of "LIST ACTIVE".
> I had begun to write an informational document but still not taken time
> (and energy) to go on :-/
> It begins with:
>
> Abstract
>
> This document defines a set of enhancements to the Network News
> Transfer Protocol (NNTP) that allows a client to request extended
> information maintained by NNTP servers as for local use and
> distribution policy. These enhancements are made as new keywords to
> the existing LIST capability described in RFC 3977.
>
> This memo updates and formalizes the LIST DISTRIBUTIONS and LIST
> SUBSCRIPTIONS commands specified in RFC 2980. It also adds the LIST
> MODERATORS and LIST MOTD commands, and specifies additional values
> returned by the existing LIST ACTIVE command for the status of a
> newsgroup.
I don't see what my patch has to do with such. The only documented flags
are 'y', 'm', and 'n', and that's what the patch outputs.
Technical Details
Message-ID:
<hagb0p$9td$1@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!newsfeed.CARNet.hr!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mailReferences:
<hag2i3$5id$4@snarked.org> <hag65j$fhq$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hagb0p$9td$1@snarked.org> Subject: Re: A couple of suggestions for INN 2.5.1 (with patch) Date: Tue, 6 Oct 2009 13:57:50 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <hag2i3$5id$4@snarked.org> <hag65j$fhq$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!newsfeed.CARNet.hr!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news-in-02.newsfeed.easynews.com!easynews.com!easynews!news.he.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 74 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-160-18-32.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1254862681 10157 71.160.18.32 (6 Oct 2009 20:58:01 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Tue, 6 Oct 2009 20:58:01 +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