Article View: news.software.nntp
Article #44168RFC 1036 Revision: MIME
From: Jonathan Grobe
Date: Thu, 17 Feb 2000 00:00
Date: Thu, 17 Feb 2000 00:00
291 lines
15516 bytes
15516 bytes
6.17. MIME headers ............................................. 0
6.17.1. Syntax ............................................... 0
6.17.2. Content-Transfer-Encoding ............................ 0
6.17.3. Content-Type ......................................... 0
6.17.3.1. Message/partial .................................. 0
6.17.3.2. Message/rfc822 ................................... 0
6.17.3.3. Message/external-body ............................ 0
6.17.3.4. Multipart types .................................. 0
6.17.4. Character Sets ....................................... 0
6.17.5. Content Disposition .................................. 0
6.17.6. Definition of some new Content-Types ................. 0
6.17.6.1. Application/news-transmission .................... 0
6.17.6.2. Message/news withdrawn ........................... 0
6.17. MIME headers
6.17.1. Syntax
The following headers, as defined within [RFC 2045] and its
extensions, may be used within articles conforming to this standard.
MIME-Version:
Content-Type:
Content-Transfer-Encoding:
Content-ID:
Content-Description:
Content-Disposition:
Content-MD5:
Insofar as the syntax for these headers, as given in [RFC 2045], does
not specify precisely where whitespace and comments may occur
(whether in the form of WSP, FWS or CFWS), the usage defined in this
standard, and failing that in [MESSFOR], and failing that in [RFC
822] MUST be followed. In particular, there MUST NOT be any WSP
between a header-name and the following colon and there MUST be a SP
following that colon.
The meaning of the various MIME headers is as defined in [RFC 2045]
and [RFC 2046], and in extensions registered in accordance with [RFC
2048]. However, their usage is curtailed as described in the
following sections.
6.17.2. Content-Transfer-Encoding
Posting agents SHOULD specify "Content-Transfer-Encoding: 8bit" for
all articles not written in pure US-ASCII and not requiring full
binary. They MAY use "8bit" encoding even when "7bit" encoding would
have sufficed. They SHOULD specify "base64" when the content type
implies binary (i.e. content intended for machine, rather than human,
consumption).
NOTE: If a future extension to the MIME standards were to
provide a more compact encoding of binary suited to transport
over an 8bit channel, it could be considered as an alternative
to base64 once it had gained widespread acceptance.
Posting agents SHOULD NOT specify encoding "quoted-printable", but
reading agents MUST interpret that encoding correctly. Encoding
"binary" MUST NOT be used (except in cooperating subnets with
alternative transport arrangements) because this standard does not
mandate a transport mechanism that could support it.
Injecting and relaying agents MUST NOT change the encoding of
articles passed to them. Gateways SHOULD ONLY change the encoding if
absolutely necessary.
6.17.3. Content-Type
The Content-Type: "text/plain" is the default type for any news
article, but the recommendations and limits on line lengths set out
in section 4.5 SHOULD be observed. The acceptability of other
subtypes of Content-Type: "text" (such as "text/html") is a matter of
policy (see 1.1), and posters SHOULD NOT use them unless established
policy or custom in the particular hierarchies or groups involved so
allows. Moreover, even in those cases, the material SHOULD, for the
benefit of readers who see it only in its transmitted form, be
"pretty-printed" so as to keep it within the line lengths recommended
in section 4.5, and to keep any sequences which control its layout or
style separate from the meaningful text.
In the same way, Content-Types requiring special processing for their
display, such as "application", "image", "audio", "video" and
"multipart/related" are discouraged except in groups specifically
intended (by policy or custom) to include them. Exceptionally, those
application types defined in [RFC 1847] and [RFC 2015] for use within
"multipart/signed" articles, and the type "application/pgp-keys" (or
other similar types containing digital certificates) may be used
freely but, contrary to [RFC 2015] and unless the article is intended
to be sent by mail also, the Content-Transfer-Encoding SHOULD be left
as "8bit" (or "7bit" as appropriate).
Reading agents SHOULD NOT, unless explicitly configured otherwise,
act automatically on Application types which could change the state
of that agent (e.g. by writing or modifying files), except in the
case of those prescribed for use in control messages (7.1.2 and
).
6.17.3.1. Message/partial
The Content-Type "message/partial" MAY be used to split a long news
article into several smaller ones, but this usage is discouraged on
the grounds that modern transport agents should have no difficulty in
handling articles of arbitrary length.
However, IF this feature is used, then the "id" parameter SHOULD be
in the form of a unique message identifier (but different from that
in the Message-ID header of any of the parts). Contrary to the
requirements specified in [RFC 2046], the Transfer-Encoding SHOULD be
set to "8bit" at least in each part that requires it. The second and
subsequent parts SHOULD contain References headers referring to all
the previous parts, thus enabling reading agents with threading
capabilities to present them in the correct order. Reading agents MAY
then provide a facility to recombine the parts into a single article
(but this standard does not require them to do so).
6.17.3.2. Message/rfc822
The Content-Type "message/rfc822" should be used for the
encapsulation (whether as part of another news article or, more
usually, as part of a mail message) of complete news articles which
have already been posted to Netnews and which are for the information
of the recipient, and do not constitute a request to repost them.
In the case where the encapsulated article has Content-Transfer-
Encoding "8bit", it will be necessary to change that encoding if it
is to be forwarded over some mail transport that only supports
"7bit". However, this should not be necessary for any mail transport
that supports the 8BITMIME feature [SMTP]. Moreover, where the
headers of the encapsulated article contain any UTF8-xtra-chars
(2.4), it may not be possible to transport them over mail transports
even where 8BITMIME is supported. In such cases, it will be necessary
to encode those headers as provided in [RFC 2047] (notwithstanding
that such usage is deprecated for news headers by this standard, and
actually forbidden in the case of the Newsgroups header).
In the event that the encapsulated article has to be encoded for
either of these reasons, it may be necessary to reverse that encoding
if certain forms of digital signatures have been employed, or if the
article is to be reintroduced into some Netnews system (however, in
the latter case, the Content-Type "application/news-transmission"
should have been used instead).
NOTE: It is likely, though not guaranteed, that headers
containing UTF8-xtra-chars will pass safely through mail
transports supporting 8BITMIME if the "message/rfc822" object is
sent as an attachment (i.e. as a part of a multipart) rather
than as the top-level body of the mail message. Moreover, it is
anticipated that future extensions to the mail standards will
permit headers containing UTF8-xtra-chars to be carried without
further ado over conforming transports.
[In fact, of current transports supporting 8BITMIME, only sendmail will
have problems with UTF-8 in top-level headers.]
6.17.3.3. Message/external-body
The Content-Type "message/external-body" could be apropriate for
texts which it would be uneconomic (in view of the likely readership)
to distribute to the entire network.
6.17.3.4. Multipart types
The Content-Types "multipart/mixed", "multipart/parallel" and
"multipart/signed" may be used freely in news articles. However,
except where policy or custom so allows, the Content-Type:
"multipart/alternative" SHOULD NOT be used, on account of the extra
bandwidth consumed and the difficulty of quoting in followups, but
reading agents MUST accept it.
The Content-Type: "multipart/digest" is commended for any article
composed of multiple messages more conveniently viewed as separate
entities. The "boundary" should be composed of 28 hyphens (US-ASCII
45) (which makes each boundary delimiter 30 hyphens, or 32 for the
final one) so as to accord with current practice for digests [RFC
1153].
[Actually, this conflicts with some present digest usage (such as the
news.answers rules), but should still be the right way to go. I suggest
this is left in for now (just to stake a claim), while we discuss the
matter with the news.answers moderators and the faq-maintainers.]
6.17.4. Character Sets
In principle, any character set may be specified in the "charset="
parameter of a content type. However, character sets other than "us-
ascii", "iso-8859-1" (and the corresponding parts of UTF-8) ought
only to be used in hierarchies where the language customarily used so
requires (and whose readers could be expected to possess agents
capable of displaying them).
6.17.5. Content Disposition
Reading agents SHOULD honour any Content-Disposition header that is
provided (in particular, they SHOULD display any part of a multipart
for which the disposition is "inline", possibly distinguished from
adjacent parts by some suitable separator). In the absence of such a
header, the body of an article or any part of a multipart with
Content-Type "text" SHOULD be displayed inline. Followup agents which
quote parts of a precursor (see 4.3.2) SHOULD initially include all
parts of the precursor that were displayed inline, as if they were a
single part.
6.17.6. Definition of some new Content-Types
This standard defines (or redefines) several new Content-Types, which
require to be registered with IANA as provided for in [RFC 2048].
For "application/news-groupinfo" see 7.1.2, for "application/news-
checkgroups" see 7.4.1, and for "application/news-transmission" see
the following section.
6.17.6.1. Application/news-transmission
The Content-Type "application/news-transmission" is intended for the
encapsulation of complete news articles where the intention is that
the recipient should then inject them into Netnews. This Application
type SHOULD be used when mailing articles to moderators and to mail-
to-news gateways (see 8.2.2).
NOTE: The benefit of such encapsulation is that it removes
possible conflict between news and email headers and it provides
a convenient way of "tunnelling" a news article through a
transport medium that does not support 8bit characters.
The MIME content type definition of "application/news-transmission"
is:
MIME type name: application
MIME subtype name: news-transmission
Required parameters: none
Optional parameters: usage=moderate
usage=inject
usage=relay
Encoding considerations: A transfer-encoding (such as Quoted-
Printable or Base64) different from that of
the article transmitted MAY be supplied
(perhaps en route) to ensure correct
transmission over some 7bit transport
medium.
Security considerations: A news article may be a "control message",
which could have effects on the recipient
host's system beyond just storage of the
article. However, such control messages
also occur in normal news flow, so most
hosts will already be suitably defended
against undesired effects.
Published specification: [USEFOR]
Body part: A complete article or proto-article, ready
for injection into Netnews, or a batch of
such articles.
NOTE: It is likely that the recipient of an "application/news-
transmission" will be a specialised gateway (e.g. a moderator's
submission address) able to accept articles with only one of the
three usage parameters "moderate", "inject" and "relay", hence
the reason why they are optional, being redundant in most
situations. Nevertheless, they MAY be used to signify the
originator's intention with regard to the transmission, so
removing any possible doubt.
When the parameter "relay" is used, or implied, the body part MAY be
a batch of articles to be transmitted together, in which case the
following syntax MUST be used.
batch = 1*( batch-header article )
batch-header = "#!" SP "rnews" SP article-size CRLF
article-size = 1*digit
where the "rnews" is case-sensitive. Thus a batch is a sequence of
articles, each prefixed by a header line that includes its size. The
article-size is a decimal count of the octets in the article,
counting each CRLF as one octet regardless of how it is actually
represented.
NOTE: Despite the similarity of this format to an executable
UNIX script, it is EXTREMELY unwise to feed such a batch into a
command interpreter in anticipation of it running a command
named "rnews"; the security implications of so doing would be
disastrous.
6.17.6.2. Message/news withdrawn
The Content-Type "message/news", as previously registered with IANA,
is hereby obsoleted and should be withdrawn. It was never widely
implemented, and its default treatment as "application/octet-stream"
by agents that did not recognise it was counter productive. The
Content-Type "message/rfc822" SHOULD be used in its place, as already
described above.
Technical Details
Message-ID:
<slrn8an557.vch.grobe+news@worf.netins.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn8an557.vch.grobe+news@worf.netins.net> Subject: RFC 1036 Revision: MIME Date: Thu, 17 Feb 2000 00:00:00 +0000 From: grobe+news@netins.net (Jonathan Grobe) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail X-Deja-AN: 586808628 Mail-Copies-To: never Organization: netINS, Des Moines, IA, USA User-Agent: slrn/0.9.6.2 (OSF1) Reply-To: <> Newsgroups: news.admin.misc,news.software.nntp,news.software.readers