🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Jonathan Grobe Thu, 17 Feb 2000 00:00
RFC 1036 Revision: MIME
#44168
Author: Jonathan Grobe
Date: Thu, 17 Feb 2000 00:00
291 lines
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.



Re: RFC 1036 Revision: MIME
#44329
Author: Russ Allbery
Date: Tue, 22 Feb 2000 00:00
27 lines
2068 bytes
In news.admin.misc, Jungshik Shin <jshin@pantheon.yale.edu> writes:
> Jonathan Grobe  wrote:

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

> I don't think giving any special positon to ISO-8859-1 is
> approripate. US-ASCII and UTF-8 can deserve such a treatment, but I
> don't think ISO-8859-1 does. It should also be restricted to hierachies
> where ISO-8859-1 is commonly used and expected (e.g. de.*, fr.*, ch.*
> etc) just like ISO-2022-JP is in fj.* and EUC-KR is in han.*.

To some degree, it's documentation of existing practice, as iso-8859-1 is
generally the assumed character set for international hierarchies.  But
thinking about it some more, I think I agree that looking forward it
doesn't make as much sense to single it out.

Forwarded to the list for their comments.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: RFC 1036 Revision: MIME
#44341
Author: Jungshik Shin
Date: Tue, 22 Feb 2000 00:00
56 lines
3209 bytes
In <slrn8an557.vch.grobe+news@worf.netins.net>, Jonathan Grobe  wrote:
:     6.17.4.  Character Sets .......................................    0

: 6.17.4 Character Sets

  "Character Set " IS different from MIME charset, which
is closer to "Character set encoding scheme" as defined in RFC 2130. One
has to be very careful in this regard.


---------quote from RFC 2130-----------
3.2.1:  Coded Character Set

   A Coded Character Set (CCS) is a mapping from a set of abstract
   characters to a set of integers.  Examples of coded character sets
   are ISO 10646 [ISO-10646], US-ASCII [ASCII], and ISO-8859 series
   [ISO-8859].

3.2.2:  Character Encoding Scheme

   A Character Encoding Scheme (CES) is a mapping from a Coded Character
   Set or several coded character sets to a set of octets. Examples of
   Character Encoding Schemes are ISO 2022 [ISO-2022] and UTF-8 [UTF-8].
   A given CES is typically associated with a single CCS; for example,
   UTF-8 applies only to ISO 10646.
-------------------------------

  The last statement is a bit misleading because there are
many instances of CES(and valid MIME charset name) which are associated
with multiple CCSs(e.g. ISO-2022-JP => JIS X 201, JIS X 208, JIS X 212,
EUC-KR=> KS X 1001, KS X 1003/US-ASCII, EUC-JP => JIS X 201/US-ASCII,
JIS X 208, JIS X 212, etc). That's where the distinction between CCS
and CES come into play.

  Granted, any reference to 'character set' in this
subsection should be replaced by 'MIME charset' for the sake of clarity
and in alignment with other RFCs/IETF standard(e.g. mail and html, etc).


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

  I don't think giving any special positon to ISO-8859-1 is
approripate. US-ASCII and UTF-8 can deserve such a treatment, but I don't
think ISO-8859-1 does. It should also be restricted to hierachies where
ISO-8859-1 is commonly used and expected (e.g. de.*, fr.*, ch.* etc)
just like ISO-2022-JP is in fj.* and EUC-KR is in han.*.


    Jungshik Shin

Re: RFC 1036 Revision: MIME
#44365
Author: Charles Lindsey
Date: Wed, 23 Feb 2000 00:00
39 lines
2663 bytes
In <ylln4c3kgh.fsf@windlord.stanford.edu> Russ Allbery <rra@stanford.edu> writes:


>In news.admin.misc, Jungshik Shin <jshin@pantheon.yale.edu> writes:
>> Jonathan Grobe  wrote:

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

>> I don't think giving any special positon to ISO-8859-1 is
>> approripate. US-ASCII and UTF-8 can deserve such a treatment, but I
>> don't think ISO-8859-1 does. It should also be restricted to hierachies
>> where ISO-8859-1 is commonly used and expected (e.g. de.*, fr.*, ch.*
>> etc) just like ISO-2022-JP is in fj.* and EUC-KR is in han.*.

>To some degree, it's documentation of existing practice, as iso-8859-1 is
>generally the assumed character set for international hierarchies.  But
>thinking about it some more, I think I agree that looking forward it
>doesn't make as much sense to single it out.

I think the intent of the text as it was written is that each hierarchy
should, so far as possible, stick to one charset. OK, if someone suddenly
starts writing to comp.os.unix in Hungarian, then iso-8859-1 might not be
suitable, but then I doubt anyone would understand him whatever charset he
used. OTOH, in a hierarchy intended for Hungarian, iso-8859-1 would
definitely be seen as the wrong thing to use (even for texts which fitted
it).

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Email:     chl@clw.cs.man.ac.uk  Web:   http://www.cs.man.ac.uk/~chl
Voice/Fax: +44 161 437 4506      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9     Fingerprint: 73 6D C2 51 93 A0 01 E7  65 E8 64 7E 14 A4 AB A5

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