From: davidk@lysator.liu.se (David Kågedal)
Subject: Re: MIME variables
Date: 06 Jul 1999 23:41:34 +0200 [thread overview]
Message-ID: <jpd7y5v4kx.fsf@venom.lysator.liu.se> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "06 Jul 1999 18:01:15 +0200"
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Hrvoje Niksic <hniksic@srce.hr> writes:
>
> > > text/x-patch would perhaps be better? That would mean that they are
> > > human-readable, but not plain.
> >
> > Probably. Yes.
>
> I'm just off for bed, but does the MIME RFC's say anything in
> particular about doing stuff like text/x-patch? I know that it's
> common to do application/x-whatever, but I don't really recall seeing
> many x-whatevers as subtypes of the text type...
Looking at RFC 2045, I see tht the BNF grammar allows subtypes of the
x-* variety. Scanning quickly through the document, I see no other
restrictions.
RFC 2046 has the following to say about text/*:
(1) text -- textual information. The subtype "plain" in
particular indicates plain text containing no
formatting commands or directives of any sort. Plain
text is intended to be displayed "as-is". No special
software is required to get the full meaning of the
text, aside from support for the indicated character
set. Other subtypes are to be used for enriched text in
forms where application software may enhance the
appearance of the text, but such software must not be
required in order to get the general idea of the
content. Possible subtypes of "text" thus include any
word processor format that can be read without
resorting to software that understands the format. In
particular, formats that employ embeddded binary
formatting information are not considered directly
readable. A very simple and portable subtype,
"richtext", was defined in RFC 1341, with a further
revision in RFC 1896 under the name "enriched".
[...]
The canonical form of any MIME "text" subtype MUST always represent a
line break as a CRLF sequence. Similarly, any occurrence of CRLF in
MIME "text" MUST represent a line break. Use of CR and LF outside of
line break sequences is also forbidden.
This rule applies regardless of format or character set or sets
involved.
[...]
4.1.4. Unrecognized Subtypes
Unrecognized subtypes of "text" should be treated as subtype "plain"
as long as the MIME implementation knows how to handle the charset.
Unrecognized subtypes which also specify an unrecognized charset
should be treated as "application/octet- stream".
--
David Kågedal <davidk@lysator.liu.se> http://www.lysator.liu.se/~davidk/
next prev parent reply other threads:[~1999-07-06 21:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-04 5:21 Lars Magne Ingebrigtsen
1999-07-04 15:55 ` Hrvoje Niksic
1999-07-04 20:09 ` Kai.Grossjohann
1999-07-05 4:17 ` Lars Magne Ingebrigtsen
1999-07-05 4:16 ` Lars Magne Ingebrigtsen
1999-07-05 13:15 ` Hrvoje Niksic
1999-07-05 13:52 ` Lars Magne Ingebrigtsen
1999-07-05 13:54 ` Hrvoje Niksic
1999-07-06 4:42 ` Lars Magne Ingebrigtsen
1999-07-06 15:17 ` Hrvoje Niksic
1999-07-06 16:01 ` Lars Magne Ingebrigtsen
1999-07-06 21:41 ` David Kågedal [this message]
1999-07-07 11:53 ` Robert Bihlmeyer
1999-07-08 7:11 ` Lars Magne Ingebrigtsen
1999-07-04 20:06 ` Kai.Grossjohann
1999-07-05 4:20 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jpd7y5v4kx.fsf@venom.lysator.liu.se \
--to=davidk@lysator.liu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).