🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
23 messages
23 total messages Started by Jonathan Grobe Mon, 01 Jul 1996 00:00
Barber's Common NNTP Extensions: A New Internet Draft
#8940
Author: Jonathan Grobe
Date: Mon, 01 Jul 1996 00:00
1330 lines
47624 bytes
[In case anyone missed it a new version of Stan Barber's Internet Draft on
Common NNTP Extensions has just been released. Note that Stan is leading
an effort to revise RFC977 and expects to release a initial draft of the
proposed document in mid-August as an Internet Draft. Discussion of this
draft will occur on the list, ietf-nntp@academ.com. Subscriptions can be
sent to the request address at ietf-nntp-request@academ.com. Archives can
be found at this URL: http://www.academ.com/academ/nntp/ietf]


INTERNET-DRAFT                                               S. Barber
Expires: November 1, 1996                   Academ Consulting Services
                                                             June 1996
                         Common NNTP Extensions
                      draft-barber-nntp-imp-04.txt

Status of this Document

     This document is an Internet-Draft.  Internet-Drafts are working
     documents of the Internet Engineering Task Force (IETF), its
     areas, and its working groups.  Note that other groups may also
     distribute working documents as Internet-Drafts.

     Internet-Drafts are draft documents valid for a maximum of six
     months and may be updated, replaced, or obsoleted by other
     documents at any time.  It is inappropriate to use Internet-
     Drafts as reference material or to cite them other than as
     ``work in progress.''


     To learn the current status of any Internet-Draft, please check
     the ``1id-abstracts.txt'' listing contained in the Internet-
     Drafts Shadow Directories on ftp.is.co.za (Africa),
     nic.nordu.net (Europe), munnari.oz.au (Pacific Rim),
     ds.internic.net (US East Coast), or ftp.isi.edu (US West Coast).

Abstract

    In this document, a number of popular extensions to the NNTP
    protocol defined in RFC977 are documented and discussed. While
    this document is not intended to serve as a standard of any kind,
    it will hopefully serve as a reference document for future
    implementors of the NNTP protocol. In the role, this document
    would hopefully create the possibility for some level of
    interoperability among implementations that make use of extensions.

Introduction

    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. Additionally, many
    other extensions are also in use. This document will capture



                                                                [Page 1]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    and define all known extensions to NNTP as of this writing.
    It is the hope of the author that using this document in
    tandem with RFC977 will limit the addition of new extensions
    that essentially do the same thing and provide for the
    creation of a new forum to discuss an official revision of
    the NNTP specification. Software developers may wish
    to use this document and others[2] as a resource for the
    development of new software.

    This document does not specify an Internet Standard of any
    kind.  It only attempts to document current practices.
    While this document may clarify some ambiguity in RFC977,
    RFC977 should be regarded as authoritative in all cases.
    There are some implementations that are not strictly RFC977
    compliant and where necessary, these deviations from the
    standard will be noted.

    Extensions fall into three categories: transport, newsreader
    and other. Transport extensions are additions to the NNTP
    specification that were made specifically to move news
    articles from one server to another server. Newsreader
    extensions are additions to the NNTP specification that
    were made to assist NNTP clients in selecting and retrieving
    news articles from servers. Other extensions to the NNTP
    specification are those which did not specifically fall
    into either of the other two categories. Examples of other
    extensions include authentication and time-of-day extensions.


    For each command, the format of section 3 of RFC977 will be used.

1. Transport Extensions

    Following are the descriptions of each transport extension
    commands and the responses which will be returned by those
    commands.

    Each command is shown in upper case for clarity, although
    case is ignored in the interpretation of commands by the
    NNTP server.  Any parameters are shown in lower case.  A
    parameter shown in [square brackets] is optional.  For
    example, [GMT] indicates that the triglyph GMT may present
    or omitted. A parameter that may be repeated is followed
    by an ellipsis.

1.1.1  The XPATH command

    XPATH <message-id>



                                                                [Page 2]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    The XPATH command is used to determine the filenames in
    which an article is filed.

    The required parameter message-id is the message id of an
    article as shown in that article's message-id header. According to
    RFC 1036[3], all message ids for all articles within the
    netnews environment are unique, but articles may be
    crossposted to multiple groups. The response to an XPATH
    command will include a listing of all filenames in which
    an article is stored separated by spaces or a response
    indicating that no article with the specified message-id
    exists.

1.1.2.  Responses

        223 path1[ path2 ...]
        430 no such article on server

1.2.1  The XREPLIC command

    XREPLIC ggg:nnn[,ggg:nnn...]

    The XREPLIC command makes is possible to exactly duplicate
    the news spool structure of one server in another server.

    This command works similarly to the IHAVE command as
    specified in RFC977. The same response codes are used. The
    command line arguments consist of entries separated by a
    single comma. Each entry consists of a news group name, a
    colon, and an article number. If the server responds with
    a 335 response, the article should be filed in the news
    group(s) and article number(s) specified in the XREPLIC
    command line.  If the server cannot do successfully install
    the article once it has accepted it, a 436 or 437 response
    code can be used to indicate the failure.

    This command should only be used when the receiving server
    is being fed by only one other server. It is likely that
    when used with servers that have multiple feeds that this
    command will frequently fail.

1.2.2.  Responses

        235 article transferred ok
        335 send article to be transferred. End with <CR-LF>.<CR-LF>
        435 article not wanted - do not send it
        436 transfer failed - try again later
        437 article rejected - do not try again



                                                                [Page 3]





INTERNET DRAFT           Common NNTP Extensions                June 1996


2. Newsreader Extensions


    Following are the descriptions of each newsreader extension
    commands and the responses which will be returned by those
    commands.

    Each command is shown in upper case for clarity, although
    case is ignored in the interpretation of commands by the
    NNTP server.  Any parameters are shown in lower case.  A
    parameter shown in [square brackets] is optional.  For
    example, [GMT] indicates that the triglyph GMT may present
    or omitted. A parameter that may be repeated is followed
    by an ellipsis. Mutually exclusive parameters are separated
    by a vertical bar (|) character. For example, ggg|<message-id>
    indicates that  a group name or a <message-id> may be
    specified, but not both.

    Also, certain commands make use of a pattern for selection
    of multiple news groups. The pattern in all cases is based
    on the wildmat[4] format introduced by Rich Salz in 1986.
    Arguments expected to be in wildmat format will be
    represented by the string wildmat. This format is discussed
    in detail in section 3.3 of this document.

2.1.1 Extensions to the LIST command


    The original LIST command took no arguments in RFC977 and
    returned the contents of the active file in a specific
    format. Since the original newsreaders made use of other
    information available in the news transport software in
    addition to the active file, extensions to the LIST command
    were created to make that information available to NNTP
    newsreaders. There may be other extensions to the LIST command
    that simply return the contents of a file. This approach is
    suggested over the addition of over verbs. For example, LIST
    MOTD could be used instead of adding XMOTD.

2.1.2 LIST ACTIVE

    LIST ACTIVE [wildmat]

    LIST ACTIVE is exactly the same as the LIST command specified in
    RFC977. The responses and the format should exactly match the LIST
    command without arguments.  If the optional matching parameter is
    specified, the list is limited to only the groups that match the
    pattern.  Specifying a single group is usually very efficient for



                                                                [Page 4]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    the server, and multiple groups may be specified by using wildmat
    patterns (similar to file globbing), not regular expressions.
    If nothing is matched an empty list is returned, not an error.

2.1.3 LIST ACTIVE.TIMES

    LIST ACTIVE.TIMES

    The active.times file is maintained by some news transports
    systems to contain information about the when and who
    created a particular news group. The format of this file
    generally include three fields. The first field is the name
    of the news group. The second is the time when this group
    was created on this news server measured in seconds since
    January 1, 1970.  The third is the email address of the
    entity that created the news group. When executed, the
    information is displayed following the 215 response. When
    display is completed, the server will send a period on a
    line by itself. If the information is not available, the
    server will return the 503 error response.

2.1.3.1 Responses

        215 information follows
        503 program error, function not performed

2.1.4 LIST DISTRIBUTIONS

    LIST DISTRIBUTIONS

    The distributions file is maintained by some news transport
    systems to contain information about valid values for the
    Distributions: line in a news article header and about what
    the values mean. Each line contains two fields, the value
    and a short explanation on the meaning of the value. When
    executed, the information is displayed following the 215
    response. When display is completed, the server will send
    a period on a line by itself. If the information is not
    available, the server will return the 503 error response.

2.1.4.1 Responses

        215 information follows
        503 program error, function not performed

2.1.5 LIST DISTRIB.PATS

    LIST DISTRIB.PATS



                                                                [Page 5]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    The distrib.pats file is maintained by some news transport
    systems to contain default values for the Distribution:
    line in a news article header when posting to particular
    news groups. This information could be used to provide a
    default value for the Distribution: line in the header when
    posting an article. The information returned involves three
    fields separated by colons. The first column is a weight.
    The second is a group name or a pattern that can be used
    to match a group name in the wildmat format. The third is
    the value of the Distribution:  line that should be used
    when the group name matches and the weight value is the
    highest. All this processing is done by the news posting
    client and not by the server itself. The server just provides
    this information to the client for it to use or ignore as
    it chooses. When executed, the information is displayed
    following the 215 response.  When display is completed,
    the server will send a period on a line by itself. If the
    information is not available, the server will return the
    503 error response.

2.1.5.1 Responses

        215 information follows
        503 program error, function not performed

2.1.6 LIST NEWSGROUPS

    LIST NEWSGROUPS [wildmat]

    The newsgroups file is maintained by some news transport
    systems to contain the name of each news group which is
    active on the server and a short description about the
    purpose of each news group. Each line in the file contains
    two fields, the news group name and a short explanation of
    the purpose of that news group. When executed, the information
    is displayed following the 215 response. When display is
    completed, the server will send a period on a line by
    itself. If the information is not available, the server
    will return the 503 response.  If the optional matching
    parameter is specified, the list is limited to only the groups
    that match the pattern (no matching is done on the group
    descriptions).  Specifying a single group is usually very
    efficient for the server, and multiple groups may be specified
    by using wildmat patterns (similar to file globbing),
    not regular expressions. If nothing is matched an empty list
    is returned, not an error.





                                                                [Page 6]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    When the optional parameter is specified, this command is
    equivalent to the XGTITLE command, though the response code
    are different.

2.1.6.1 Responses

        215 information follows
        503 program error, function not performed

2.1.7 LIST OVERVIEW.FMT

    LIST OVERVIEW.FMT

    The overview.fmt file is maintained by some news transport
    systems to contain the order in which header information
    is stored in the overview databases for each news group.
    When executed, news article header fields are displayed
    one line at a time in the order in which they are stored
    in the overview database[5] following the 215 response.
    When display is completed, the server will send a period
    on a line by itself. If the information is not available,
    the server will return the 503 response.

    Please note that if the header has the word "full" (without
    quotes) after the colon, the header's name is prepended
    to its field in the output returned by the server.

    Many newsreaders work better if Xref: is one of the optional fields.
    It is suggested that servers that use XOVER include "Xref:full" in
    their overview.fmt file.

    It is STRONGLY recommended that this command be implemented
    in any server that implements the XOVER command. See section
    2.8 for more details about the XOVER command.

2.1.7.1 Responses

        215 information follows
        503 program error, function not performed

2.1.8 LIST SUBSCRIPTIONS

    LIST SUBSCRIPTIONS

    This command is used to get a default subscription list for
    new users of this server. The order of groups is significant.





                                                                [Page 7]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    When this list is available, it is preceded by the 215
    response and followed by a period on a line by itself. When
    this list is not available, the server returns a 503 response
    code.

2.1.8.1 Responses

        215 information follows
        503 program error, function not performed

2.2 LISTGROUP

    LISTGROUP [ggg]

    The LISTGROUP command is used to get a listing of all the
    article numbers in a particular news group.

    The optional parameter ggg is the name of the news group
    to be selected (e.g. "news.software.b").  A list of valid
    news groups may be obtained from the LIST command. If no
    group is specified, the current group is used as the default
    argument.

    The successful selection response will be a list of the
    article numbers in the group followed by a period on a line
    by itself.

    When a valid group is selected by means of this command,
    the internally maintained "current article pointer" is set
    to the first article in the group.  If an invalid group is
    specified, the previously selected group and article remain
    selected.  If an empty news group is selected, the "current
    article pointer" is in an indeterminate state and should
    not be used.

    Note that the name of the news group is not case-dependent.
    It must otherwise match a news group obtained from the LIST
    command or an error will result.

2.2.1  Responses

        211 list of article numbers follow
        412 Not currently in newsgroup
        502 no permission

2.3 MODE QUERY

    MODE QUERY



                                                                [Page 8]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    MODE QUERY is the same as MODE READER. See section 2.4.

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.

2.4.1 Responses

        200 Hello, you can post
        201 Hello, you can't post

2.5 XGTITLE

    XGTITLE [wildmat]

    The XGTITLE command is used to retrieve news group descriptions
    for specific news groups.

    This extension first appeared in ANU-NEWS, an NNTP
    implementation for DEC's VMS. The optional parameter is a
    pattern in wildmat format. When executed, a 282 response
    is given followed by lines that have two fields, the news
    group name (which matches the pattern in the argument) and
    a short explanation of the purpose of the news group.  When
    no argument is specified, the default argument is the
    current group name. When display is completed, the server
    sends a period on a line by itself.

    Please note that this command and the LIST NEWSGROUP command
    provide the same functionality with different response codes.

    Since this command provides the same functionality as LIST NEWSGROUP
    it is suggested that this extension be depreciated and no longer be
    used in newsreading clients.

2.5.1 Responses

        282 list of groups and descriptions follows

2.6 XHDR

    XHDR header [range|<message-id>]

    The XHDR command is used to retrieve specific headers from
    specific articles.



                                                                [Page 9]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    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
                an article number followed by a dash followed by
                   another article number

    The optional message-id argument indicates a specific
    article. The range and message-id arguments are mutually
    exclusive. If no argument is specified, then information
    from the current article is displayed. Successful responses
    start with a 221 response followed by a the matched headers
    from all matched messages. 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. If a range is specified, a news group
    must have been selected earlier, else a 412 error response
    is returned. If no articles are in the range specified, a
    420 error response is returned by the server. A 502 response
    will be returned if the client only has permission to
    transfer articles.

    The XHDR command has been available in the UNIX reference
    implementation from its first release. However, until now,
    it has only been documented in the source for the server.

2.6.1 Responses

        221 Header follows
        412 No news group current selected
        420 No current article selected
        430 no such article
        502 no permission

2.7 XINDEX

    XINDEX ggg

    The XINDEX command is used to retrieve an index file in
    the format of originally created for use by the TIN[6] news
    reader.

    The required parameter ggg is the name of the news group
    to be selected (e.g. "news.software.b").  A list of valid
    news groups may be obtained from the LIST command.



                                                               [Page 10]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    The successful selection response will return index file
    in the format used by the TIN news reader followed by a
    period on a line by itself.

    When a valid group is selected by means of this command,
    the internally maintained "current article pointer" is set
    to the first article in the group.  If an invalid group is
    specified, the previously selected group and article remain
    selected.  If an empty news group is selected, the "current
    article pointer" is in an indeterminate state and should
    not be used.

    Note that the name of the news group is not case-dependent.
    It must otherwise match a news group obtained from the LIST
    command or an error will result.

    The format of the tin-style index file is discussed in the
    documentation for the TIN newsreader. Since more recent
    versions of TIN support the news overview (NOV) format, it
    is recommended that this extension become historic and no
    longer be used in current servers or future implementations.

2.7.1 Responses

        218 tin-style index follows
        418 no tin-style index is available for this news group

2.8 XOVER

    XOVER [range]

    The XOVER command returns information from the overview
    database for the article(s) specified.

    The optional range argument may be any of the following:
                an article number
                an article number followed by a dash to indicate
                   all following
                an article number followed by a dash followed by
                   another article number

    If no argument is specified, then information from the
    current article is displayed.   Successful responses start
    with a 224 response followed by the overview information
    for all matched messages. Once the output is complete, a
    period is sent on a line by itself. If no argument is
    specified, the information for the current article is
    returned.  A news group must have been selected earlier,



                                                               [Page 11]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    else a 412 error response is returned. If no articles are
    in the range specified, a 420 error response is returned
    by the server. A 502 response will be returned if the
    client only has permission to transfer articles.

    Each line of output will be formatted with the article number,
    followed by each of the headers in the overview database or the
    article itself (when the data is not available in the overview
    database) for that article separated by a tab character.  The
    sequence of fields must be in this order: subject, author,
    date, message-id, references, byte count, and line count. Other
    optional fields may follow line count. Where no data exists, a
    null field must be provided (i.e. the output will have two tab
    characters adjacent to each other). Servers should not output
    fields for articles that have been removed since the XOVER database
    was created.

    The LIST OVERVIEW.FMT command should be implemented if XOVER
    is implemented. A client can use LIST OVERVIEW.FMT to determine
    what optional fields  and in which order all fields will be
    supplied by the XOVER command. See Section 2.1.7 for more
    details about the LIST OVERVIEW.FMT command.

2.8.1 Responses

      224 Overview information follows
      412 No news group current selected
      420 No article(s) selected
      502 no permission

2.9 XPAT

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

    The XPAT command is used to retrieve specific headers from
    specific articles.

    The required header 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 required range argument may be
    any of the following:
                an article number
                an article number followed by a dash to indicate
                   all following
                an article number followed by a dash followed by
                   another article number





                                                               [Page 12]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    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.

2.9.1 Responses

        221 Header follows
        430 no such article
        502 no permission

2.10 XROVER

    XROVER [range]

    The XROVER command returns reference information from the
    overview database for the article(s) specified.

    The optional range argument may be any of the following:
        an article number
        an article number followed by a dash to indicate
             all following
        an article number followed by a dash followed by
            another article number

    Successful responses start with a 224 response followed by
    the contents of reference information for all matched messages. Once
    the output is complete, a period is sent on a line by
    itself. If no argument is specified, the information for
    the current article is returned.  A news group must have
    been selected earlier, else a 412 error response is returned.
    If no articles are in the range specified, a 420 error
    response is returned by the server. A 502 response will be
    returned if the client only has permission to transfer
    articles.

    The output will be formatted with the article number,
    followed by the contents of the References: line for that article.




                                                               [Page 13]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    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.

2.10.1 Responses

        224 Overview information follows
        412 No news group current selected
        420 No article(s) selected
        502 no permission

2.11 XTHREAD

    XTHREAD [DBINIT|THREAD]

    The XTHREAD command is used to retrieve threading information
    in format of originally created for use by the TRN[6] news
    reader.

    The command XTHREAD DBINIT may be issued prior to entering
    any groups to see if a thread database exists.  If it does,
    the database's byte order and version number are returned
    as binary data.

    If no parameter is given, XTHREAD THREAD is assumed.

    To use XTHREAD THREAD, a news group must have been selected
    earlier, else a 412 error response is returned.

    A 502 response will be returned if the client only has
    permission to transfer articles. A 503 response is returned
    if the threading files are not available.

    The format of the trn-style thread format is discussed in
    the documentation for the TRN newsreader. Since more recent
    versions of TRN support the news overview (NOV) format, it
    is recommended that this extension become historic and no
    longer be used in current servers or future implementations.

2.11.1 Responses

        288 Binary data to follow
        412 No newsgroup current selected
        502 No permission
        503 program error, function not performed

3. Other Extensions



                                                               [Page 14]





INTERNET DRAFT           Common NNTP Extensions                June 1996


3.1 AUTHINFO

    AUTHINFO is used to inform a server about the identity of
    a user of the server. In all cases, clients must provide
    this information when requested by the server. Servers are
    not required to accept authentication information that is
    volunteered by the client. Clients must accommodate servers that
    reject any authentication information volunteered by the client.

    There are three forms of AUTHINFO in use. The original version,
    an NNTP v2 revision called AUTHINFO SIMPLE and a more recent
    version which is called AUTHINFO GENERIC.

3.1.1 Original AUTHINFO

    AUTHINFO USER username
    AUTHINFO PASS password

    The original AUTHINFO is used to identify a specific entity
    to the server using a simple username/password combination.

    When authorization is required, the server will send a 480
    response requesting authorization from the client. The
    client must enter AUTHINFO USER followed by the username.
    Once sent, the server will cache the username and may send
    a 381 response requesting the password associated with that
    username. Should the server request a password using the 381
    respose, the client must enter AUTHINFO PASS followed by
    a password and the server will then check the authentication
    database to see if the username/password combination is valid.
    If the combination is valid or if no password is required,
    the server will return a 281 response. The client should then
    retry the original command to which the server responded with
    the 480 response. The command should then be processed by
    the server normally. If the combination is not valid, the server
    will return a 502 response.

    Clients must provide authentication when requested by the server.
    It is possible that some implementations will accept authentication
    information at the beginning of a session, but this was not the
    original intent of the specification. If a client attempts to
    reauthenticate, the server may return 482 response indicating
    that the new authentication data is rejected by the server.
    The 482 code will also be returned when the AUTHINFO commands
    are not entered in the correct sequence (like two AUTHINFO
    USERs in a row, or AUTHINFO PASS preceding AUTHINFO USER).





                                                               [Page 15]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    All information is passed in cleartext.

    When authentication succeeds, the server will create an email
    address for the client from the user name supplied in the
    AUTHINFO USER command and the hostname generated by a reverse
    lookup on the IP address of the client. If the reverse lookup
    fails, the IP address, represented in dotted-quad format, will
    be used. Once authenticated, the server shall generate a Sender:
    line using the email address provided by authentication if it
    does not match the client-supplied From: line. Additionally,
    the server should log the  event, including the email address
    This will provide a means by which subsequent statistics generation
    can associate newsgroup references with unique entities - not
    necessarily by name.

3.1.1.1 Responses

        281 Authentication accepted
        381 More authentication information required
        480 Authentication required
        482 Authentication rejected
        502 No permission

3.1.2 AUTHINFO SIMPLE

    AUTHINFO SIMPLE
    user password

    This version of AUTHINFO was part of the proposed NNTP V2
    specification and is implemented in some servers and clients.
    It is a refinement of the original AUTHINFO and provides
    the same basic functionality, but the sequence of commands
    is much simpler.

    When authorization is required, the server sends a 450 response
    requesting authorization from the client. The client must enter
    AUTHINFO SIMPLE. If the server will accept this form of
    authentication, the server responds with a 350 response. The
    client must then send the username followed by one or more
    space characters followed by the password. If accepted, the
    server returns a 250 response and the client should then
    retry the original command to which the server responded
    with the 450 response. The command should then be processed
    by the server normally. If the combination is not valid,
    the server will return a 452 response.

    Note that the response codes used here were part of the
    NNTP V2 specification and are violations of RFC 977. It



                                                               [Page 16]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    is recommended that this command not be implemented, but
    use either or both of the other forms of AUTHINFO if such
    functionality if required.

3.1.2.1 Responses

        250 Authorization accepted
        350 Continue with authorization sequence
        450 Authorization required for this command
        452 Authorization rejected

3.1.3 AUTHINFO GENERIC

    AUTHINFO GENERIC authenticator arguments...

    AUTHINFO GENERIC is used to identify a specific entity to the
    server using arbitrary authentication  or identification
    protocols. The desired protocol is indicated by the
    authenticator parameter, and any number of parameters can
    be passed to the authenticator.

    When authorization is required, the server will send a 380
    response requesting authorization from the client. The
    client should enter AUTHINFO GENERIC followed by the
    authenticator name, and the arguments if any.  The authenticator
    and arguments must not contain the sequence "..".

    The server will attempt to engage the server end authenticator,
    similarly, the client should engage the client end authenticator.
    The server end authenticator will then initiate authentication
    using the NNTP sockets (if appropriate for that authentication
    protocol), using the protocol specified by the authenticator name.
    These authentication protocols are not included in this document,
    but are similar in structure to those referenced in RFC 1731[8]
    for the IMAP-4 protocol.

    If the server returns 501, this means that the authenticator
    invocation was syntactically incorrect, or that AUTHINFO
    GENERIC is not supported.  The client should retry using the
    AUTHINFO USER command.

    If the requested authenticator capability is not found or
    there is some other unspecified server program error, the
    server returns the 503 response code.

    The authenticators converse using their protocol until complete.
    If the authentication succeeds, the server authenticator will
    terminate with a 281, and the client can continue by reissuing



                                                               [Page 17]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    the command that prompted the 380.  If the authentication fails,
    the server will respond with a 502.

    The client must provide authentication when requested by the
    server.  The server may request authentication at any
    time.  Servers may request authentication more than once
    during a single session.

    When the server authenticator completes, it provides to the
    server (by a mechanism herein undefined) the email address
    of the user, and potentially what the user is allowed to
    access. Once authenticated, the server shall generate a Sender:
    line using the email address provided by the authenticator
    if it does not match the user-supplied From: line. Additionally,
    the server should log the event, including the user's
    authenticated email address (if available). This will provide
    a means by which subsequent statistics generation can
    associate newsgroup references with unique entities - not
    necessarily by name.

3.1.3.1 Responses

        281 Authentication succeeded
        380 Authentication required
        501 Command not supported or Command syntax error
        502 No permission
        503 Program error, function not performed
        nnn  authenticator-specific protocol.

3.2 DATE

    DATE

    The NNTP v2 draft specification added this command to help
    clients find out the current time from the server's perspective.
    At the time this command was discussed (1991-1992), the
    Network Time Protocol [9] (NTP) was not yet in wide use and there
    was also some concern that small systems may not be able to make
    effective use of NTP.

    This command returns a one-line response code of 111 followed
    by the  GMT date and time on the server in the form
    YYYYMMDDhhmmss.

3.2.1 Responses

        111 YYYYMMDDhhmmss




                                                               [Page 18]





INTERNET DRAFT           Common NNTP Extensions                June 1996


3.3 The WILDMAT format

    The WILDMAT format was first developed by Rich Salz to provide
    a uniform mechanism for matching patterns in the same manner
    that the UNIX shell matches filenames. Patterns are implicitly
    anchored at the beginning and end of each string when testing for
    a match. There are five pattern matching operations other than
    a strict one-to-one match between the pattern and the source to
    be checked for a match. The first is an asterisk (*) to match
    any sequence of zero or more characters. The second is a
    question mark (?) to match any single character. The third
    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. 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.

3.3.1 Examples

    a. [^]-] -- matches any single character other than a close square
                bracket or a minus sign/dash.

    b. *bdc  -- matches any string that ends with the string "bdc"
                including the string "bdc" (without quotes).

    c. [0-9a-zA-Z] -- matches any single printable alphanumeric ASCII
                character.

    d. a??d  --  matches any four character string which begins
                 with a and ends with d.

3.4 Additional Headers

    Many NNTP implementations add headers to Usenet articles when then
    are POSTed via NNTP. These headers are discussed in this section.
    None of these headers conflict with those specified in RFC 1036
    and should be passed unchanged by Usenet transports conforming
    to RFC 1036.




                                                               [Page 19]





INTERNET DRAFT           Common NNTP Extensions                June 1996


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.

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.

4.0 Future Work

    With the continued use of NNTP on the Internet, there
    remains an interest in creating an optimized transport
    protocol for server-to-server transfers and an optimized
    client protocol for client-to-server interactions. There
    is also considerable interest is building better mechanisms
    to provide audit information on which news groups are being
    read by which users.

    How this will be done remains an open issue.

5.0 Security

    No security issues are discussed in this document.

6.0 References

[1]  Kantor, B and P. Lapsley, "Network News Transfer Protocol",
     RFC-977, U.C. San Diego and U.C. Berkeley, February, 1986.

[2]  Limoncelli, Tom, "Read This Before You Write a Newsreader",
     http://mars.superlink.net/tal/news-software-authors.html, June,



                                                               [Page 20]





INTERNET DRAFT           Common NNTP Extensions                June 1996


     1996.

[3]  Horton, M.R. and R. Adams, "Standard for interchange of USENET mes-
     sages",  RFC-1036, AT&T Bell Laboratories and Center for Seismic
     Studies, December, 1987.

[4]  Salz, Rich, Manual Page for wildmat(3) from the INN 1.4 distribu-
     tion, UUNET Technologies, Revision 1.10, April, 1992.

[5]  Robertson, Rob, "FAQ: Overview database / NOV General Information",
     ftp://ftp.uu.net/networking/news/nntp/inn/faq-nov.Z, January, 1995.

[6]  Lea, Ian, "FAQ about the TIN newsreader",
     http://www.scn.de/~iain/tin/faq.html, April, 1995.

[7]  Kappesser, Peter, "[news.software.readers] trn newsreader FAQ", 2
     parts, ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/news/ soft-
     ware/readers/%5Bnews.software.readers%5D_trn_newsreader_FAQ
     %2C_part_1%3A_Basics and ftp://rtfm.mit.edu/pub/usenet-by-hierar-
     chy/news/software/ readers/%5Bnews.software.readers%5D_trn_news-
     reader_FAQ %2C_part_2%3A_Advanced, February, 1995.

[8]  Meyers, J, "IMAP4 Authentication Mechanisms", RFC-1731, Carnegie
     Mellon, December, 1994.

[9]  Mills, David L., "Network Time Protocol (Version 3), Specification,
     Implementation and Analysis", RFC-1305, University of Delaware,
     March 1992.

7.0 Notes

         DEC is a registered trademark of Digital Equipment Corporation.
         UNIX is a registered trademark of the X/Open Consortium.
         VMS is a registered trademark of Digital Equipment Corporation.

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>

9.0 Author's Address

    Stan Barber
    P.O. Box 300481
    Houston, Texas, 77230



                                                               [Page 21]





INTERNET DRAFT           Common NNTP Extensions                June 1996


    Email: <sob@academ.com>

This document expires November 1, 1996.
















































                                                               [Page 22]



--
Jonathan Grobe <grobe@netins.net>   Note: All my comments on the
group-mentors list and alt.config are simply my opinion.

Re: Barber's Common NNTP Extensions: A New Internet Draft
#8943
Author: 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$

Re: Barber's Common NNTP Extensions: A New Internet Draft
#8958
Author: Thomas 'Mike' Michlmayr
Date: Tue, 02 Jul 1996 00:00
19 lines
1327 bytes
In article <4ra16q$atk@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
[...]
>>3.4.2 X-Newsreader and others
[...]
>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.

Agreed for every X-* header except X-Newsreader. This header is a IMHO a 
_very_ valuable information for debugging problems. You can easily point
out bad software (missing References, mangled References, ...) and try to
talk to the authors.

-- 
Thomas 'Mike' Michlmayr can not assert the truth of all statements in 
this article and still be consistent. <mike@cosy.sbg.ac.at>


Re: Barber's Common NNTP Extensions: A New Internet Draft
#8973
Author: Brian Hernacki
Date: Tue, 02 Jul 1996 00:00
43 lines
2637 bytes
Rich Salz wrote:
 > >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.

Don't quite a few clients rely on this to search newsgroups? If so, bad
idea or not, it doesn't seem right to pull (or even move to historic) 
something that is in common use. Especially when there is no alternative
method in the protocol to accomplish this (searching).

Maybe offering an alternative (some improved searching like folks have been
discussing on the ietf-nntp mailing list) and then marking XPAT as
"superseded", or "replaced" would be the way to go? Kind of lets folks
gradually move away from XPAT.

--brian
--------------------------------------------------------
Brian Hernacki                 mailto:bhern@netscape.com
Usenet foot-soldier	       Netscape Communications
(setf disclaimer "I speak for myself, not the company")

Re: Barber's Common NNTP Extensions: A New Internet Draft
#8975
Author: Jay Maynard
Date: Wed, 03 Jul 1996 00:00
35 lines
2040 bytes
On 2 Jul 1996 02:23:22 GMT, Rich Salz <rsalz@osf.org> wrote:
>Thanks for posting this.  My comments.

On the whole, good, and authoritative...except for this one:

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

Sorry, but net.opinion is trending the other way. YOu may well have been
right when the world ran rn, or even trn, but today, there are enough
disparate newsreaders on the net that it's useful to see which one generates
a particular style of broken article...it's no longer an issue of vanity,
but of debugging, and the clutter is negligible compared to the size of the
average news article.

>Nice job!
>	/r$

I'll agree with that one, though...
-- 
Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can
http://k5zc.hsc.uth.tmc.edu       | adequately be explained by stupidity.
            "Just because I'm a superhero doesn't mean
              I have to smell poo gas." -- Freakazoid


Re: Barber's Common NNTP Extensions: A New Internet Draft
#8980
Author: David Woolley
Date: Wed, 03 Jul 1996 00:00
15 lines
1159 bytes
[ Dropping bogus inet distribution ]
In article <4ra16q$atk@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
>
>probably be dropped.  It's enough to say, I think that
>	XROVER range
>is equiv to
>	XHDR References range
>right?

XROVER resolves message-IDs to article numbers, where available.
-- 
David Woolley, London, England          david@djwhome.demon.co.uk

Re: Barber's Common NNTP Extensions: A New Internet Draft
#8982
Author: Brian Hernacki
Date: Wed, 03 Jul 1996 00:00
33 lines
2344 bytes
Mark Delany wrote:
> >Alas, the damage is done. I don't think there is any argument that
> >given the amount of info in USENET today, that searching is
> >important.
> 
> >IMHO, we need something akin to IMAP4's SEARCH verb that allows
> >structured and freetext searching.
> 
> Conversely, perhaps the searching capability shoudn't/needn't be built
> into every news server. Perhaps a specialized server along the lines
> of Alta-Vista that returns article IDs for the client to pull the
> articles (relatively) locally might be a better strategy.

Clients use XPAT right now to do server sife searches because they want to
do it in the context of the news server. They want the server to do the
work and they want to access it in a newsgroup via their news client.

I don't think having to split access (from a client POV) across 2 servers
to search is a very nice thing. What I *could* see is the client requesting
a search and the news server handing it off to some back end ( an excite
search engine, and Oracle DB, etc). The back end sends the results back to
the news server to process and present to the client.

I really think searching protocol should be built into the news server.

--brian
--------------------------------------------------------
Brian Hernacki                 mailto:bhern@netscape.com
Usenet foot-soldier	       Netscape Communications
(setf disclaimer "I speak for myself, not the company")

Re: Barber's Common NNTP Extensions: A New Internet Draft
#8988
Author: Bill Stewart-Cole
Date: Wed, 03 Jul 1996 00:00
19 lines
1557 bytes
In article <4rcma0$h0q@paperboy.osf.org>, rsalz@osf.org (Rich Salz) wrote:

>In <31D9443E.480E@netscape.com> Brian Hernacki <bhern@netscape.com> writes:
>>Don't quite a few clients rely on this to search newsgroups? If so, bad
>>idea or not, it doesn't seem right to pull (or even move to historic) 
>>something that is in common use. Especially when there is no alternative
>>method in the protocol to accomplish this (searching).
>
>If there are other clients that use it, then yes it should stay.  I
>didn't think others had picked up on it.

FWIW, the NewsWatcher family of Mac newsreaders do use it (optionally) for
searches. It is a very helpful command.

-- 
Bill Stewart-Cole

Re: Barber's Common NNTP Extensions: A New Internet Draft
#8999
Author: Rich Salz
Date: Wed, 03 Jul 1996 00:00
16 lines
1351 bytes
In <31D9443E.480E@netscape.com> Brian Hernacki <bhern@netscape.com> writes:
>Don't quite a few clients rely on this to search newsgroups? If so, bad
>idea or not, it doesn't seem right to pull (or even move to historic) 
>something that is in common use. Especially when there is no alternative
>method in the protocol to accomplish this (searching).

If there are other clients that use it, then yes it should stay.  I
didn't think others had picked up on it.

The command sucks because I was too lazy to change nnrpd to do token-based
parsing.  It's only now that I realize it would have been a not-very-hard
set of changes to argify.  Sigh.
	/r$

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9003
Author: Jon Bell
Date: Wed, 03 Jul 1996 00:00
25 lines
1700 bytes
 Rich Salz <rsalz@osf.org> wrote:
>>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.

In newsgroups like news.newusers.questions, one very common category of
question is "Help! How do I do xxxxx?" with no indication of which
software the author is using.  Many newcomers to the net don't have any
idea that there is any other kind of software besides what they are using. 
It saves a lot of time and wasted effort when the name and version number
of the newsreader is included automatically. 

-- 
Jon Bell <jtbell@presby.edu>                        Presbyterian College
Dept. of Physics and Computer Science        Clinton, South Carolina USA
[for beginner's Usenet info, see http://cs1.presby.edu/~jtbell/usenet/]

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9004
Author: Brian Hernacki
Date: Wed, 03 Jul 1996 00:00
32 lines
2270 bytes
Rich Salz wrote:
> 
> In <31D9443E.480E@netscape.com> Brian Hernacki <bhern@netscape.com> writes:
> >Don't quite a few clients rely on this to search newsgroups? If so, bad
> >idea or not, it doesn't seem right to pull (or even move to historic)
> >something that is in common use. Especially when there is no alternative
> >method in the protocol to accomplish this (searching).
> 
> If there are other clients that use it, then yes it should stay.  I
> didn't think others had picked up on it.
> 
> The command sucks because I was too lazy to change nnrpd to do token-based
> parsing.  It's only now that I realize it would have been a not-very-hard
> set of changes to argify.  Sigh.

Alas, the damage is done. I don't think there is any argument that given the amount of info
in USENET today, that searching is important. I've been looking over several clients and
watching client newsgroups and it looks like people are starting to catch on to the search
thing. Right now the only thing to do is either pull down all the articles (or headers) or
use XPAT...and either one sucks. 

IMHO, we need something akin to IMAP4's SEARCH verb that allows structured and freetext
searching.

--brian
--------------------------------------------------------
Brian Hernacki                 mailto:bhern@netscape.com
Usenet foot-soldier	       Netscape Communications
(setf disclaimer "I speak for myself, not the company")

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9015
Author: Stefan Kurth
Date: Wed, 03 Jul 1996 00:00
26 lines
1414 bytes
[ About the XPAT command ]

Rich Salz <rsalz@osf.org> wrote:

> In <31D9443E.480E@netscape.com> Brian Hernacki <bhern@netscape.com> writes:
>
> >Don't quite a few clients rely on this to search newsgroups? If so, bad
> >idea or not, it doesn't seem right to pull (or even move to historic)
> >something that is in common use.
> 
> If there are other clients that use it, then yes it should stay.  I
> didn't think others had picked up on it.


NewsWatcher and its variants (YA-NewsWatcher and VA-NewsWatcher) use it
to implement a Search command.  NewsWatcher is a Mac newsreader that is
extremely popular.


-- 
Stefan Kurth
Berlin, Germany
http://www.inx.de/~stk/

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9022
Author: Olly Betts
Date: Wed, 03 Jul 1996 00:00
25 lines
1795 bytes
In article <4rcma0$h0q@paperboy.osf.org>, Rich Salz wrote:
>In <31D9443E.480E@netscape.com> Brian Hernacki <bhern@netscape.com> writes:
>>[Re XPAT]
>>Don't quite a few clients rely on this to search newsgroups? If so, bad
>>idea or not, it doesn't seem right to pull (or even move to historic) 
>>something that is in common use. Especially when there is no alternative
>>method in the protocol to accomplish this (searching).
>
>If there are other clients that use it, then yes it should stay.  I
>didn't think others had picked up on it.

I know slrn makes use of XPAT in a couple of places.  It uses it if the user
wants to find follow-ups to an article (XPAT References <range> <msgid>) and
to find out the article number of an article when it only knows the
message-id (XPAT Message-ID <range> <msgid>).

XPAT has its uses but something more versatile would be better.

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass


Re: Barber's Common NNTP Extensions: A New Internet Draft
#9035
Author: Mark Delany
Date: Thu, 04 Jul 1996 00:00
28 lines
1721 bytes
Brian Hernacki <bhern@netscape.com> writes:

>Rich Salz wrote:
>> 
>> In <31D9443E.480E@netscape.com> Brian Hernacki <bhern@netscape.com> writes:
>> >Don't quite a few clients rely on this to search newsgroups? If so, bad

>> The command sucks because I was too lazy to change nnrpd to do token-based
>> parsing.  It's only now that I realize it would have been a not-very-hard
>> set of changes to argify.  Sigh.

>Alas, the damage is done. I don't think there is any argument that
>given the amount of info in USENET today, that searching is
>important.

>IMHO, we need something akin to IMAP4's SEARCH verb that allows
>structured and freetext searching.

Conversely, perhaps the searching capability shoudn't/needn't be built
into every news server. Perhaps a specialized server along the lines
of Alta-Vista that returns article IDs for the client to pull the
articles (relatively) locally might be a better strategy.


Regards.

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9037
Author: Eric L. Stromberg
Date: Thu, 04 Jul 1996 00:00
19 lines
1240 bytes
In article <4ra16q$atk@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
>>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)

i rather need to set up a full master/slave feed.  would you care to
elaborate on this or point the way to some docs on this issue?  i have
begun to work on doing this with XREPLIC and slave mode...

<e-mail reply appreciated in addition to posting--if that is even worth
while...>

thanks.


Re: Barber's Common NNTP Extensions: A New Internet Draft
#9053
Author: Olly Betts
Date: Fri, 05 Jul 1996 00:00
37 lines
2310 bytes
In article <slrn4tphll.i3o.jbn@mystery-train.cu-online.com>, J.B. Nicholson-Owens wrote:
>Rich Salz <rsalz@osf.org> wrote:
>>probably be dropped.  It's enough to say, I think that
>>	XROVER range
>>is equiv to
>>	XHDR References range
>>right?
>
>[...]
>
>Also, as for XROVER/XHDR, the difference is that `XHDR References range'
>``typically searches the articles themselves'' whereas `XROVER range' ``only
>uses information from the overview database''.  Unfortunately, this
>distinction assumes potentially irrelevant implementation details.

I think that paragraph (which is in the XROVER section) is meant to mean
that XROVER only reads information from the overview databases, so it won't
work if they aren't present, while XHDR will return the information even if
it has to search each article for it.  I don't think it's meant to mean that
XHDR always searches the articles (INN 1.4's XHDR implementation uses the
overview file if the header requested is in it).

So it isn't really intruding too much on implementation details, but rather
is saying "XROVER is a variant of XOVER which only returns part of the
overview database".

Another probable difference is that XHDR returns "(none)" (without the
quotes) for articles which don't have the requested header, which I suspect
XROVER doesn't (though I've not seen a server which implements it).

Olly
-- 
cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass


Re: Barber's Common NNTP Extensions: A New Internet Draft
#9056
Author: J.B. Nicholson-Owens
Date: Fri, 05 Jul 1996 00:00
24 lines
1583 bytes
Rich Salz <rsalz@osf.org> wrote:
>probably be dropped.  It's enough to say, I think that
>	XROVER range
>is equiv to
>	XHDR References range
>right?

David Woolley <david@djwhome.demon.co.uk> replied:
> XROVER resolves message-IDs to article numbers, where available.

The output includes article numbers, but (according to my copy of the draft)
it's not limited to that.  The draft states, ``the contents of the
References: line'' is also returned.

Also, as for XROVER/XHDR, the difference is that `XHDR References range'
``typically searches the articles themselves'' whereas `XROVER range' ``only
uses information from the overview database''.  Unfortunately, this
distinction assumes potentially irrelevant implementation details.
-- 
Due to local news server and feed problems, I might not see all followups.


Re: Barber's Common NNTP Extensions: A New Internet Draft
#9075
Author: Felix von Leitner
Date: Sat, 06 Jul 1996 00:00
21 lines
1660 bytes
On Wed, 03 Jul 1996 11:37:27 -0700, Brian Hernacki <bhern@netscape.com> wrote:
> Alas, the damage is done. I don't think there is any argument that given the amount of info
> in USENET today, that searching is important. I've been looking over several clients and
> watching client newsgroups and it looks like people are starting to catch on to the search
> thing. Right now the only thing to do is either pull down all the articles (or headers) or
> use XPAT...and either one sucks. 

> IMHO, we need something akin to IMAP4's SEARCH verb that allows structured and freetext
> searching.

How does the search verb work?  What kind of structured queries does it
allow?  Is it fast enough?

I had much success using Glimpse, which is a *very* high performance
search engine which can do structures queries, too.

Felix


Re: Barber's Common NNTP Extensions: A New Internet Draft
#9085
Author: Felix von Leitner
Date: Sat, 06 Jul 1996 00:00
25 lines
1860 bytes
On 4 Jul 1996 10:36:37 +1000, Mark Delany <markd@mira.net.au> wrote:
> >IMHO, we need something akin to IMAP4's SEARCH verb that allows
> >structured and freetext searching.

> Conversely, perhaps the searching capability shoudn't/needn't be built
> into every news server. Perhaps a specialized server along the lines
> of Alta-Vista that returns article IDs for the client to pull the
> articles (relatively) locally might be a better strategy.

NOO!  Please NOT!  Just think about this:

  * GNUS and slrn 1.0 have built-in searching and scoring based on
    content.
  * Each time *any* one on the whole earth enters a newsgroup, a
    connection is opened to the server of your choice.
  * A list of Message-IDs is returned from somewhere (in Germany,
    Alta Vista is unusable from 10:00 to (at least) 18:00, since we get
    3 bytes per hour when trying to connection to servers outside
    Germany or even outside Europe.

Felix [Immediate Death of the Net predicted!!]


Re: Barber's Common NNTP Extensions: A New Internet Draft
#9099
Author: David Woolley
Date: Sun, 07 Jul 1996 00:00
47 lines
2686 bytes
In article <slrn4tphll.i3o.jbn@mystery-train.cu-online.com>,
J.B. Nicholson-Owens <jbn@mystery-train.cu-online.com> wrote:
>
>David Woolley <david@djwhome.demon.co.uk> replied:
>> XROVER resolves message-IDs to article numbers, where available.
>
>The output includes article numbers, but (according to my copy of the draft)
>it's not limited to that.  The draft states, ``the contents of the
>References: line'' is also returned.

This is an edited version of what XROVER returns for this group.  Note
that it returns only article numbers, where possible (and only the latest
one, as the others can be derived by tracing back):


Script started on Sun Jul  7 13:36:36 1996
bash$ telnet localhost nntp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 djwhome NNTP[auth] server version 1.5.12.1 (1 Jan 1995) ready at Sun Jul  7 14:36:48 1996 (posting ok).
group news.software.nntp
211 203 17341 18661 news.software.nntp
xrover 1-
224 reference data follows
17341 <drndfi.gv2@bigred.inka.de> <4nd3ar$nk4@jik.israel.net> <trans-1505961010370001@rockridgepc.ih.att.com> <4nce6h$e0m@jik.israel.net> <4na631$if3@villa.fc.net>
18460 <31D4442A.664C@terrabyte.headgate.com> <slrn4t3ooi.mc.schmadde@schmadde.isdn.fu-berlin.de> <4qp60u$f08@egate.egate.net> <gergDtHoys.GI8@netcom.com> <31CA73F0.94A@ngonet.be>
...
18467 <4qs8mb$abu@fugue.clari.net>
18468 18461
18469
18470 <4r1478$1f7q@bcx01.boco.co.gov> <4qvd4l$3d7$1@bushwire.mira.net.au> <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com> <4qs8mb$abu@fugue.clari.net>
18471 18466
18472 18469
..
quit
205 djwhome closing connection.  Goodbye.
Connection closed by foreign host.
bash$ exit
exit

Script done on Sun Jul  7 13:37:24 1996
-- 
David Woolley, London, England          david@djwhome.demon.co.uk

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9113
Author: Mark Delany
Date: Mon, 08 Jul 1996 00:00
31 lines
2037 bytes
leitner@xorn.prz.tu-berlin.de (Felix von Leitner) writes:

>On 4 Jul 1996 10:36:37 +1000, Mark Delany <markd@mira.net.au> wrote:
>> >IMHO, we need something akin to IMAP4's SEARCH verb that allows
>> >structured and freetext searching.

>> Conversely, perhaps the searching capability shoudn't/needn't be built
>> into every news server. Perhaps a specialized server along the lines
>> of Alta-Vista that returns article IDs for the client to pull the
>> articles (relatively) locally might be a better strategy.

>NOO!  Please NOT!  Just think about this:

>  * A list of Message-IDs is returned from somewhere (in Germany,
>    Alta Vista is unusable from 10:00 to (at least) 18:00, since we get
>    3 bytes per hour when trying to connection to servers outside
>    Germany or even outside Europe.

I wasn't suggesting just one or a few servers for the whole world
necessarily. I was more meaning that not every news server in the
world may need to implement a sophisticated searching system. Who
knows, perhaps Germany might have 10 or 20 of these beasts itself?

In any event, this is all *very* speculative so I wouldn't get too hep
up about it.


Regards.

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9121
Author: Brian Hernacki
Date: Mon, 08 Jul 1996 00:00
33 lines
2451 bytes
Felix von Leitner wrote:
> 
> On Wed, 03 Jul 1996 11:37:27 -0700, Brian Hernacki <bhern@netscape.com> wrote:
> > Alas, the damage is done. I don't think there is any argument that given the amount of info
> > in USENET today, that searching is important. I've been looking over several clients and
> > watching client newsgroups and it looks like people are starting to catch on to the search
> > thing. Right now the only thing to do is either pull down all the articles (or headers) or
> > use XPAT...and either one sucks.
> 
> > IMHO, we need something akin to IMAP4's SEARCH verb that allows structured and freetext
> > searching.
> 
> How does the search verb work?  What kind of structured queries does it
> allow?  Is it fast enough?

You can check out the IMAP4 rfc (http://andrew2.andrew.cmu.edu/cyrus/email/standards-IMAP.html)
I have looked it over and done some testing a with a few minor changes an NNTP verb
based on this would provide excellant freetext and structured searching.

Speed would be entirley dependent on the implemenation. If someone wants to
package a big fast server in thats fine..if someone wants to write perl backend
that does this that's fine too. The important point it to give the server and
client a way to "talk" about searching (other than XPAT).


--brian
--------------------------------------------------------
Brian Hernacki                 mailto:bhern@netscape.com
Usenet foot-soldier	       Netscape Communications
(setf disclaimer "I speak for myself, not the company")

Re: Barber's Common NNTP Extensions: A New Internet Draft
#9135
Author: Brian Hernacki
Date: Mon, 08 Jul 1996 00:00
33 lines
2362 bytes
Mark Delany wrote:
> >NOO!  Please NOT!  Just think about this:
> 
> >  * A list of Message-IDs is returned from somewhere (in Germany,
> >    Alta Vista is unusable from 10:00 to (at least) 18:00, since we get
> >    3 bytes per hour when trying to connection to servers outside
> >    Germany or even outside Europe.
> 
> I wasn't suggesting just one or a few servers for the whole world
> necessarily. I was more meaning that not every news server in the
> world may need to implement a sophisticated searching system. Who
> knows, perhaps Germany might have 10 or 20 of these beasts itself?
> 
> In any event, this is all *very* speculative so I wouldn't get too hep
> up about it.

I think I share Felix's trepidation. I think the best way is to make it
transparent to the news client HOW searching gets done. If you want to
write a news server that calls up Dejanews each time and sucks down the
article, that's fine, but as an admin I would much rather run my own
search server. I could control what is searchable, who searches, etc.
I also would need to rely on any external pieces...which to an admin is
certain doom.


--brian
--------------------------------------------------------
Brian Hernacki                 mailto:bhern@netscape.com
Usenet foot-soldier	       Netscape Communications
(setf disclaimer "I speak for myself, not the company")

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads