🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8943

Re: Barber's Common NNTP Extensions: A New Internet Draft

#8943
From: Rich Salz
Date: Tue, 02 Jul 1996 00:00
238 lines
9110 bytes
Thanks for posting this.  My comments.

>                         Common NNTP Extensions

Consider listing the software release that implements (or first
provided) the functionality.


>    RFC977[1] defines the NNTP protocol and  was released almost
>    a decade ago. Since then, NNTP has become one of the most
>    popular protocols in use on the Internet. Many implementations
>    of the protocol have been created on many different platforms
>    and operating systems. With the growth in use of the
>    protocol, work began on a revision to NNTP in 1991, but
>    that work did not result in a new protocol specification.
>    However, many ideas from that working group did find their
>    way into many implementations of NNTP.

Newsreader authors syhould be mentioned as the biggest source
of extensions, I think.

>1. Transport Extensions

Do you need to define transport vs. reader?  Do you even need to
care about this difference at all?

>1.1.1  The XPATH command
>    XPATH <message-id>

This is a reader command.
A caveat should be added the the data returned is only useful when
the client knows the implementation details of the server.
Well-written clients would avoid this command.

>1.2.1  The XREPLIC command

FWIW the author of this command (me) now realizes it was a mistake
and that, instead, parsing the Xref header is the way to go.
(Yes, put Xref on articles even if not cross--posted)


>2.1.1 Extensions to the LIST command
>
>    the server, and multiple groups may be specified by using wildmat
>    patterns (similar to file globbing), not regular expressions.
                               ^^^^^^^^
should define terms before they are used.

>    Many newsreaders work better if Xref: is one of the optional fields.

This sentence is good.

>    It is suggested that servers that use XOVER include "Xref:full" in
>    their overview.fmt file.

This sentence is a real implementation detail and should be removed.

>2.3 MODE QUERY

Don't document this command.  IT's an experiment that I never released
nor finished.

>2.4 MODE READER
>
>    MODE READER is used by the client to indicate to the server
>    that it is a news reading client. Some implementations make
>    use of this information to reconfigure themselves for better
>    performance in responding to news reader commands.
Add "(contrast this with the SLAVE command in 977)"

>    The required parameter is the name of a header line (e.g.
>    "subject") in a news group article. See RFC-1036 for a list
>    of valid header lines. The optional range argument may be
>    any of the following:
>                an article number
>                an article number followed by a dash to indicate
>                   all following
		 a dash followed by an article number meaning
		    up to and including
>                an article number followed by a dash followed by
>                   another article number
>2.8 XOVER
>
>    XOVER [range]
>
>    The XOVER command returns information from the overview
>    database for the article(s) specified.

Same comment about the range...

>2.9 XPAT
>
>    XPAT header range|<message-id> pat [pat...]

same comments about range

>    The required message-id argument indicates a specific
>    article. The range and message-id arguments are mutually
>    exclusive. At least one pattern in wildmat must be specified
>    as well. If there are additional arguments the are joined
>    together separated by a single space to form the complete
>    pattern. Successful responses start with a 221 response
>    followed by a the headers from all messages in which the
>    pattern matched the contents of the specified header line. Once
>    the output is complete, a period is sent on a line by
>    itself. If the optional argument is a message-id and no
>    such article exists, the 430 error response is returned.
>    A 502 response will be returned if the client only has
>    permission to transfer articles.

This command, which I added to INN to support xvnews, is the probably
worst thing I have ever done.  This command should be moved to
historic.

>2.10 XROVER
>
>    XROVER [range]

I can't comment on the range since I didn't ipmlement an XROVER.

>    This command provides the same basic functionality as using
>    the XHDR command and "references" as the header arguement except
>    that it only uses information from the overview database. XHDR
>    typically searches the articles themselves.

This last part is a real implementation-specific issue.  It shyould
probably be dropped.  It's enough to say, I think that
	XROVER range
is equiv to
	XHDR References range
right?

>2.11 XTHREAD

I know you mark this as a deprecated command, but saying "binary
data" is probably not enough since you didn't decode the TRN stuff.
IT's hard to see that it's worthwhile to spend time to do that, tho. :)

>3.1 AUTHINFO

huzzah, finally documented!  Thanks.

>3.1.3 AUTHINFO GENERIC

I thought we also add AUTHINFO LIST to see what authenticators
the server supported.

>3.2 DATE

>3.3 The WILDMAT format

The WILDMAT format actually comes from what the find "-name" flag
supported on Version 7 Unix.  But thanks for the credit. :)

>    specifies a specific set of characters. The set is specified as
>    a list of characters, or as a range of characters where the
>    beginning and end of the range are separated by a minus (or dash)
>    character, or as any combination of lists and ranges. The dash can
>    also be included in the range as a character it if is the beginning
>    or end of the range. This set is enclosed in square brackets. The
>    close square bracket (]) may be used in a range if it is the first
>    character in the set.

So is that "[-]]" or "[]-]"?  ik.e., which must be first if you
want both?

>    The fourth operation is the same as the
>    logical not of the third operation and is specified the same
>    way as the third with the addition of a caret character (^) at
>    the beginning of the test string just inside the open square
>    bracket. The final operation uses the backslash character to
>    invalidate the special meaning of the a open square bracket ([),
>    the asterisk, or the question mark.
	it also removes the special meaning of the backslash character.

>3.4 Additional Headers

>3.4.1 NNTP-Posting-Host
>
>    This line is added to the header of a posted article by the
>    server. The contents of the header is either the IP address
>    or the fully qualified domain name of the client host posting
>    the article. The fully qualified domain name should be
>    determined by doing a reverse lookup in the DNS on the IP
>    address of the client. If the client article contains this line,
>    it is removed by the server before acceptance of the article
>    by the Usenet transport system.
>
>    This header provides some idea of the actual host posting
>    the article as opposed to information in the Sender or From
>    lines that may be present in the article. This is not a
>    fool-proof methodology since reverse lookups in the DNS
>    are vulnerable to certain types of spoofing, but such
>    discussions are outside the scope of this document.

additional info may be avail via authinfo generic.

On the plus side, this might help reduce the "can i trust this article"
from the trust-every-workstation scale to do-i-trust-this-server scale.

>
>3.4.2 X-Newsreader and others
>
>
>    There are other lines that are added by clients as well.
>    Most of these indicate the type of newsreader software
>    that is posting the article.

They are to be discouraged, as in most cases the vanity the offer the
author is outweighed by the clutter the add to the network.

>5.0 Security
>
>    No security issues are discussed in this document.

er, waht about the authinfo section?

>
>6.0 References

>8.0 Acknowledgments
>
>    The author gratefully acknowledges the comments and additional
>    information provided by the following individuals:
>    Wayne Davison <davison@armory.com>
>    Chris Lewis <clewis@bnr.ca>
>    Eric Schnoebelen <eric@egsner.cirr.com>

I think credit should be given to various NNTP server implementors,
and popular newsreader authors.

>9.0 Author's Address

Nice job!
	/r$

Technical Details
Message-ID: <4ra16q$atk@paperboy.osf.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.mbox.zip!not-for-mail
References: <4r96d3$dbc@insosf1.netins.net>

Show Full Headers
Complete Article Headers
Message-ID: <4ra16q$atk@paperboy.osf.org>
Subject: Re: Barber's Common NNTP Extensions: A New Internet Draft
Date: Tue, 02 Jul 1996 00:00:00 +0000
From: rsalz@osf.org (Rich Salz)
References: <4r96d3$dbc@insosf1.netins.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 163227321
Distribution: inet
Organization: Open Software Foundation
Newsgroups: news.software.nntp,news.software.readers