Thread View: news.software.nntp
5 messages
5 total messages
Started by Andrew Gierth
Sat, 26 Feb 2000 00:00
[NNTP Draft] 11. Other keywords
Author: Andrew Gierth
Date: Sat, 26 Feb 2000 00:00
Date: Sat, 26 Feb 2000 00:00
205 lines
8015 bytes
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.
ietf-nntp Re: [NNTP Draft] 11. Other keywords
Author: Russ Allbery
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
65 lines
3223 bytes
3223 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
> 11.3 NEWGROUPS
> NEWGROUPS date time [GMT|UTC]
[...]
> 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.
This seems an ill-advised rule in the presence of clients that may have
slightly bogus clocks. If it's actually 23:50, December 31st, a client
may well send a date in the next year, and the server would then return
all newsgroups on the system. I think there should be a wider margin used
here.
> 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.
The term "new newsgroups" seems underspecified, and in practice clients
should be aware that the list may not be comprehensive (in particular,
date ranges which predate the start of operations of that particular news
server are unlikely to result in correct returns).
> 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.
news groups, plural.
> 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 recommend following the convention used in the USEFOR draft and using
either the .example TLD or example.{com,org,net} in all examples of this
sort. Just in case.
nowhere.to may well be a valid domain.
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: [NNTP Draft] 11. Other keywords
Author: Curt Welch
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
50 lines
3094 bytes
3094 bytes
Jeremy <bofh@netscum.dk> wrote: > > 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. > > I'm thinking it might be nice to have another command that returns a list > of all of the commands the server implements, in a defined and machine > readable format. This could simplify capabilities discovery greatly. > > LIST COMMANDS > 2xx Commands implemented by this server > FOO > BAR > [...] > . Yeah, I like that idea as well. But does it show all commands that the server "can" support, or all that it's currently "willing" to support for the given mode of the current session? Or does it show both at the same time somehow? The concept going in the current RFC however is that all "new" servers will implement ONLY those commands specified in the RFC, and all other commands will be "documented" though the use of LIST EXTENSIONS. I'm actually thinking that approach is may be a good one. This of course is somewhat worthless if we don't have extensions defined for XOVER, XHDR, AUTHINFO etc. which virtually ALL clients use these days. And becuse of the Xcommand stuff (and x8x), there can't in theory be an "officaial" standard for XOVER or AUTHINFO. So therefor, any server that's actually useable today has no hope of being in compliance with the RFC. We really should find a solution to this so that the NNTP RFC could become a useful tool. Maybe the only workable option here is to create a son-of-977 that's not official, but which is the standard by which we can all work? Or continue with the RFC as is and create non-official EXTENSIONS for things like XOVER/XHDR and AUTHINFO which we all must use anyway? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [NNTP Draft] 11. Other keywords
Author: Jeremy
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
20 lines
1443 bytes
1443 bytes
Curt Welch <curt@kcwc.com> wrote: > Yeah, I like that idea as well. But does it show all commands that the > server "can" support, or all that it's currently "willing" to support > for the given mode of the current session? You're really looking for some MODE READER blood, aren't you? :) It should report the commands implemented in the program that the client is talking to. If I telnet to localhost:119, and type "help", I get a different list of commands than I get after I type "mode reader". Same idea. No need to get extra-fancy. Changing mode is allowed to change the list of implemented commands. A server could, for example, not allow streaming commands like CHECK and TAKETHIS until after a MODE STREAM is sent. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: [NNTP Draft] 11. Other keywords
Author: diethyl-methyl fluffine hydrocho...
Date: Mon, 28 Feb 2000 00:00
Date: Mon, 28 Feb 2000 00:00
9 lines
1042 bytes
1042 bytes
> 11.4 NEWNEWS > > NEWNEWS newsgroups date time [GMT] I just wanted to draw attention to the removal of the distributions parameter from this command. Is there any software in actual use that will break horribly from this change?
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