Thread View: news.software.nntp
1 messages
1 total messages
Started by Jonathan Grobe
Thu, 17 Feb 2000 00:00
RFC 1036 Revision: Definitions, Notations, Conventions
Author: Jonathan Grobe
Date: Thu, 17 Feb 2000 00:00
Date: Thu, 17 Feb 2000 00:00
326 lines
17484 bytes
17484 bytes
2. Definitions, Notations and Conventions ........................ 0
2.1. Definitions. ............................................. 0
2.2. Textual Notations ......................................... 0
2.3. Relation To Mail and MIME ................................. 0
2.4. Syntax Notation ........................................... 0
2.5. Language .................................................. 0
2. Definitions, Notations and Conventions
2.1. Definitions.
An "article" is the unit of news, analogous to a [MESSFOR] "message".
A "proto-article" is one that has not yet been injected into the news
system.
A "message identifier",) is a unique identifier for an article,
usually supplied by the "posting agent" which posted it or, failing
that, by the "injecting agent". It distinguishes the article from
every other article ever posted anywhere. Articles with the same
message identifier are treated as if they are the same article
regardless of any differences in the body or headers.
A "newsgroup" is a single news forum, a logical bulletin board,
having a name and nominally intended for articles on a specific
topic. An article is "posted to" a single newsgroup or several
newsgroups. When an article is posted to more than one newsgroup, it
is said to be "crossposted"; note that this differs from posting the
same text as part of each of several articles, one per newsgroup.
A newsgroup may be "moderated", in which case submissions are not
posted directly, but mailed to a "moderator" for consideration and
possible posting. Moderators are typically human but may be
implemented partially or entirely in software.
A "hierarchy" is the set of all newsgroups whose names share a first
component (as defined in 5.5). The term "sub-hierarchy" is also used
where several initial components are shared.
A "poster" is the person or software that composes and submits a
possibly compliant article to a "posting agent". The poster is
analogous to [MESSFOR]'s author(s).
A "posting agent" is the software that assists posters to prepare
proto-articles, in compliance with this standard. The proto-article
is then passed on to an "injecting agent" for final checking and
injection into the news stream. If the article is not compliant, or
is rejected by the injecting agent, then the posting agent informs
the poster with an explanation of the error.
A "reader" is the person or software reading news articles.
A "reading agent" is software which presents articles to a reader.
A "followup" is an article containing a response to the contents of
an earlier article (the followup's "precursor").
A "followup agent" is a combination of reading agent and posting
agent that aids in the preparation and posting of a followup.
An article's "reply address" is the address to which mailed replies
should be sent. This is the address specified in the article's From
header (5.2), unless it also has a Reply-To header (6.1).
A "reply agent" is a combination of reading agent and mailer that
aids in the preparation and posting of an email response to an
article.
A "sender" is the person or software (usually, but not always, the
same as the poster) responsible for the operation of the posting
agent or, which amounts to the same thing, for passing the article to
the injecting agent. The sender is analogous to [MESSFOR]'s sender.
An "injecting agent" takes the finished article from the posting
agent (often via the NNTP "post" command) performs some final checks
and passes it on to a relaying agent for general distribution.
A "relaying agent" is software which receives allegedly compliant
articles from injecting agents and/or other relaying agents, and
possibly passes copies on to other relaying agents and serving
agents.
A "news database" is the set of articles and related strutural
information stored by a serving agent and made available for access
by reading agents.
A "serving agent" receives an article from a relaying agent and files
it in a news database. It also provides an interface for reading
agents to access the news database.
A "control message" is an article which is marked as containing
control information; a relaying or serving agent receiving such an
article may (subject to the policies observed at that site) take
actions beyond just filing and passing on the article.
A "gateway" is software which receives news articles and converts
them to messages of some other kind (e.g. mail to a mailing list), or
vice versa; in essence it is a translating relaying agent that
straddles boundaries between different methods of message exchange.
The most common type of gateway connects newsgroup(s) to mailing
list(s), either unidirectionally or bidirectionally, but there are
also gateways between news networks using this standard's news format
and those using other formats.
2.2. Textual Notations
This standard contains explanatory NOTEs using the following format.
These may be skipped by persons interested solely in the content of
the specification. The purpose of the notes is to explain why
choices were made, to place them in context, or to suggest possible
implementation techniques.
NOTE: While such explanatory notes may seem superfluous in
principle, they often help the less-than-omniscient reader grasp
the purpose of the specification and the constraints involved.
Given the limitations of natural language for descriptive
purposes, this improves the probability that implementors and
users will understand the true intent of the specification in
cases where the wording is not entirely clear.
"ASCII" is short for "the ANSI X3.4 character set" [ANSI X3.4].
While "ASCII" is often misused to refer to various character sets
somewhat similar to X3.4, in this standard "ASCII" means X3.4 and
only X3.4. ASCII is a 7 bit character set. Please note that this
standard requires that all agents be 8 bit clean; that is, they must
accept and transmit data without changing or omitting the 8th bit.
Certain words, when capitalized, are used to define the significance
of individual requirements. The key words "MUST", "SHOULD", "MAY" and
the same words followed by "NOT" are to be interpreted as described
in [RFC 2119].
NOTE: The use of "MUST" always implies a requirement that would
lead to interoperability problems if not followed, but the word
"SHOULD", especially when it is applied to actions of posting
and similar agents which the individual poster may easily
override, is often used where a violation would do no more than
breach established policy, or accepted standards of "Good
Netkeeping". Moreover, even a "MUST" requirement imposed on a
relaying or serving agent applies only to articles actually
processed by that agent (since such an agent may always reject
any article entirely for reasons of site policy).
All numeric values are given in decimal unless otherwise indicated.
Octets are assumed to be unsigned values for this purpose.
Throughout this standard we will give examples of various
definitions, headers and other specifications. It needs to be be
remembered that these samples are for the aid of the reader only and
do NOT define any specification themselves. In order to prevent
possible conflict with "Real World" entities and people the top level
domain of ".example" is used in all sample domains and addresses.
The hierarchy of example.* is also used as a sample hierarchy.
Information on the ".example" top level domain is in [RFC 2606].
2.3. Relation To Mail and MIME
The primary intent of this standard is to describe the news article
format. Insofar as news articles are a subset of the Mail message
format augmented by some new headers, this standard incorporates many
(though not all) of the provisions of [MESSFOR], with the aim of
enabling news articles to pass through mail systems and vice versa,
provided only that they contain the minimum headers required for the
mode of transport being used. Unfortunately, the match is not
perfect, but it is the intention of this standard that gateways
between Mail and News should be able to operate with the minimum of
tinkering.
[This standard has been designed to fit on top of the drafts currently
in preparation for Mail [MESSFOR]. It is expected that those drafts
will have progressed to the RFC stage by the time the present standard
in complete, at which time all references to [MESSFOR] in the present
text will be replaced by references to that RFC.]
Likewise, this standard incorporates many (though not all) of the
provisions of the MIME standards [RFC 2045] et seq which, though
designed with Mail in mind, are mostly applicable to News.
2.4. Syntax Notation
This standard uses the Augmented Backus Naur Form described in [RFC
2234]. A discussion of this is outside the bounds of this standard,
but it is expected that implementors will be able to quickly
understand it with reference to the defining document.
Much of the syntax of News Articles is based on the corresponding
syntax defined in [MESSFOR] or in the Mime specifications [RFC 2045]
et seq, which is deemed to have been incorporated into this standard
as required. However, there are some important differences arising
from the fact that [MESSFOR] does not recognise anything other than
US-ASCII characters, that it does not recognise the MIME headers [RFC
2045], and that it includes much syntax described as "obsolete".
NOTE: News parsers historically have been much less permissive
than Mail parsers, and this is reflected in the modifications
referred to, and in some further specific rules.
The following syntactic forms therefore supersede the corresponding
rules given in [MESSFOR] and [RFC 2045], thus allowing UTF-8
characters [RFC 2044] to appear in certain contexts (the four rules
begining with "strict-" reflect the corresponding original rules from
[MESSFOR]).
UTF8-xtra-head = %d192-253
UTF8-xtra-tail = %d128-191
UTF8-xtra-char = UTF8-xtra-head 1*UTF8-xtra-tail
text = %d1-9 / ; all UTF-8 characters except
%d11-12 / ; US-ASCII NUL, CR and LF
%d14-127 /
UTF8-xtra-char
ctext = NO-WS-CTL / ; all of <text> except
%d33-39 / ; SP, HTAB, "(", ")"
%d42-91 / ; and "\"
%d93-126 /
UTF8-xtra-char
qtext = NO-WS-CTL / ; all of <text> except
%d33 / ; SP, HTAB, "\" and DQUOTE
%d35-91 /
%d93-126 /
UTF8-xtra-char
utext = NO-WS-CTL / ; Non white space controls
%d33-126 / ; The rest of US-ASCII
UTF8-xtra-char
strict-text = %d1-9 / ; text restricted to
%d11-12 / ; US-ASCII
%d14-127
strict-qtext = NO-WS-CTL / ; qtext restricted to
%d33 / ; US-ASCII
%d35-91 /
%d93-127
strict-quoted-pair
= "\" strict-text
strict-quoted-string
= [CFWS] DQUOTE
*([FWS] (strict-qtext / strict-quoted-pair))
[FWS] DQUOTE [CFWS]
NOTE: There are sequences of octets which cannot legitimately
occur in UTF-8, even a few permitted by the above syntax. These
SHOULD NOT be generated by posting agents but, where they occur
inadavertently, they SHOULD be passed on untouched by other
agents.
Wherever in this standard the syntax is stated to be taken from
[MESSFOR], it is to be understood as the syntax defined by [MESSFOR]
after making the above changes, but NOT including any syntax defined
in section 4 ("Obsolete syntax") of [MESSFOR]. Software compliant
with this standard MUST NOT generate any of the syntactic forms
defined in that Obsolete Syntax, although it MAY accept such
syntactic forms. Certain syntax from the MIME specifications [RFC
2045] et seq is also considered a part of this standard (see 6.17).
The following syntactic forms, taken from [RFC 2234] or from
[MESSFOR], are repeated here for convenience only:
ALPHA = %x41-5A / ; A-Z
%x61-7A ; a-z
CR = %x0D ; carriage return
CRLF = CR LF
DIGIT = %x30-39 ; 0-9
HTAB = %x09 ; horizontal tab
LF = %x0A ; line feed
SP = %x20 ; space
NO-WS-CTL = %d1-8 / ; US-ASCII control characters
%d11 / ; which do not include the
%d12 / ; carriage return, line feed,
%d14-31 / ; and whitespace characters
%d127
WSP = SP / HTAB ; Whitespace characters
FWS = ([*WSP CRLF] 1*WSP); Folding whitespace
atext = ALPHA / DIGIT /
"!" / "#" / ; Any character except
"$" / "%" / ; controls SP, and specials.
"&" / "'" / ; Used for atoms
"*" / "+" /
"-" / "/" /
"=" / "?" /
"^" / "_" /
"`" / "}" /
"|" / "}" /
"~"
atom = [CFWS] 1*atext [CFWS]
dot-atom = [CFWS] dot-atom-text [CFWS]
dot-atom-text = 1*atext *( "." 1*atext )
comment = "(" *([FWS]
(ctext / quoted-pair / comment)) [FWS] ")"
CFWS = *([FWS] comment) (([FWS] comment) / FWS )
DQUOTE = %d34 ; quote mark
quoted-pair = "\" text
quoted-string = [CFWS] DQUOTE
*([FWS] (qtext / quoted-pair))
[FWS] DQUOTE [CFWS]
unstructured = *( [FWS] utext ) [FWS]
NOTE: CFWS occurs at many places in the syntax in order to allow
comments and extra whitespace to be inserted almost anywhere.
The syntax is in fact ambiguous insofar as it may be impossible
to tell in which of several possible ways a given comment or WS
was produced. However, this does not lead to semantic ambiguity
because, unless specifically stated otherwise, the presence of
absence of a comment or additional WS has no semantic meaning
and, in particular, it is a matter of indifference whether it
forms a part of the syntactic construct preceding it or the one
following it.
NOTE: Following [RFC 2234], literal text included in the syntax
is to be regarded as case-insensitive. However, in
contradistinction to [MESSFOR], the Netnews protocols are
sensitive to case in some instances (as in newsgroup names, some
header parameters, etc.). Care has been taken to indicate this
explicitly where required.
2.5. Language
Various constant strings in this standard, such as header names and
month names, are derived from English words. Despite their
derivation, these words do NOT change when the poster or reader
employing them is interacting in a language other than English.
Posting and reading agents MAY translate as appropriate in their
interaction with the poster or reader, but the forms that actually
appear in articles MUST be the English-derived ones defined in this
standard.
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