🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44506

[NNTP Draft] 11. Other keywords

#44506
From: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
205 lines
8015 bytes
[This is one of a series of extracts from draft-ietf-nntpext-base-09.txt
which is available in full from the usual Internet-Draft archives.]


          11. Other Keywords

            There are other keywords that may be used at any time between
            the beginning of a session and its termination.  Using these
            keywords do not alter any state information, but the response
            generated from the use of these keywords may provide useful
            information to clients that use them.

          11.1 DATE

            DATE

            This command exists to help clients find out the current time
            from the server's perspective.  This command SHOULD NOT be
            used as a substitute for NTP[8], but to provide information
            that might be useful when using the NEWNEWS command (see
            section 0).

          Barber                                                 [Page 50]

          INTERNET DRAFT                                 November 1999

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

          11.1.1 Responses

                 111 YYYYMMDDhhmmss

          11.1.2 Example
                    [S] 200 NNTP Service Ready

                    [C] DATE

                    [S] 19990623135624

          11.2 The HELP Command

            HELP

            This command provides a short summary of commands that are
            understood by this implementation of the server. The help text
            will be presented as a textual response terminated by a single
            period on a line by itself.

            This text is not guaranteed to be in any particular format and
            SHALL NOT be used by clients as a replacement for the LIST
            EXTENSIONS command described in section 8.1.

          11.2.1 Responses

                 100 help text follows

          11.2.2 Example
                    [S] 200 NNTP Service Ready

                    [C] HELP

                    [S] 100 Help text follows

                        This is some help text. There is no specific

                        formatting requirement for this test, though

                        it is customary for it to list the valid commands

                        and give a brief definition of what they do

                        .

          Barber                                                 [Page 51]

          INTERNET DRAFT                                 November 1999

          11.3 NEWGROUPS

            NEWGROUPS date time [GMT|UTC]

            A list of newsgroups created since <date and time> MUST be
            listed in the same format as the LIST command.

            The date is sent as 6 or 8 digits in the format [XX]YYMMDD,
            where XX is the first two digits of the year, YY is the last
            two digits of the year, MM is the two digits of the month
            (with leading zero, if appropriate), and DD is the day of the
            month (with leading zero, if appropriate). If the first two
            digits of the year are not specified, the year is to be taken
            from the current century if YY is smaller than or equal to the
            current year, otherwise the year is from the previous century.

            Time must also be specified.  It must be as 6 digits HHMMSS
            with HH being hours in the 24-hour clock 00-23, MM minutes 00-
            59, and SS seconds 00-60, which allows for leap seconds. The
            tokens "GMT" and "UTC" specifies that the date and time are
            given in UTC. If the tokens "GMT" and "UTC" are omitted then
            the date and time are specified in the server's local
            timezone. Note that there is no way within this specification
            of NNTP to establish the server's local timezone.

            Note that an empty list (i.e., the text body returned by this
            command consists only of the terminating period) is a possible
            valid response, and indicates that there are currently no new
            newsgroups.

            Clients SHOULD make all queries using GMT/UTC time when
            possible.

          11.3.1 Responses

                 231 list of new newsgroups follows

          11.3.2 Examples
            Example where there are new groups

                    [S] 200 NNTP Service Ready

                    [C] NEWGROUPS 19990624 000000 UTC

                    [S] 230 list of new newsgroups follows

                        alt.rfc-writers.recovery

                        tx.natives.recovery

                        .

            Example where there are no new groups

          Barber                                                 [Page 52]

          INTERNET DRAFT                                 November 1999

                    [S] 200 NNTP Service Ready

                    [C] NEWGROUPS 19990624 000000 UTC

                    [S] 230 list of new newsgroups follows

                        .

          11.4 NEWNEWS

            NEWNEWS newsgroups date time [GMT]

            A list of message-ids of articles posted or received to the
            specified news group since "date" will be listed. The format
            of the listing will be one message-id per line, as though text
            were being sent.  A single line consisting solely of one
            period followed by CR-LF will terminate the list.

            Date and time are in the same format as the NEWGROUPS command.
            The newsgroups parameter MUST be in wildmat format and MAY
            consist of multiple wildmat constructs separated by an US-
            ASCII comma character.

            Note that an empty list (i.e., the text body returned by this
            command consists only of the terminating period) is a possible
            valid response, and indicates that there is currently no new
            news.

            Clients SHOULD make all queries in GMT/UTC time when possible.

          11.4.1 Responses

               230 list of new articles by message-id follows

          11.4.2 Examples
            Example where there are new articles

                    [S] 200 NNTP Service Ready

                    [C] NEWNEWS news.*,sci.* 19990624 000000

                    [S] 230 list of new articles by message-id follows

                        <i.am.a.new.article@nowhere.to>

                        <i.am.another.new.article@nowhere.to>

                        .

            Example where there are no new articles

          Barber                                                 [Page 53]

          INTERNET DRAFT                                 November 1999

                    [S] 200 NNTP Service Ready

                    [C] NEWNEWS alt.* 19990624 000000

                    [S] 230 list of new articles by message-id follows

                        .


-- 
Andrew.

Technical Details
Message-ID: <87k8jrd33z.fsf@erlenstar.demon.co.uk>
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

Show Full Headers
Complete Article Headers
Message-ID: <87k8jrd33z.fsf@erlenstar.demon.co.uk>
Subject: [NNTP Draft] 11. Other keywords
Date: Sat, 26 Feb 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
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: 590399722
X-Mayan-Date: Long count = 12.19.6.17.16; tzolkin = 13 Cib; haab = 4 Kayab
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha