Network Working Group M. Sirbu
Request for Comments: 1049 CMU
March 1988
A CONTENT-TYPE HEADER FIELD FOR INTERNET MESSAGES
1. Introduction
As defined in RFC-822, [2], an electronic mail message consists of a number of defined header fields, some containing structured information (e.g., date, addresses), and a message body consisting of an unstructured string of ASCII characters.
Sirbu [Page 1]
RFC 1049 Mail Content Type March 1988
In both of these examples, the message body contains only the legal character set, but the content has a structure which produces some desirable result after appropriate processing by the recipient. If a message header field could be used to indicate the structuring technique used in the message body, then a sophisticated mail system could use such a field to automatically invoke the appropriate processing of the message body. For example, a header field which indicated that the message body was encoded using Postscript could be used to direct a mail system running under Sun Microsystem's NEWS window manager to process the Postscript to produce the appropriate page image on the screen.
Sirbu [Page 2]
RFC 1049 Mail Content Type March 1988 2. Problems with Structured MessagesOnce we introduce the notion that a message body might require some processing other than simply painting the characters to the screen we raise a number of fundamental questions. These generally arise due to the certainty that some receiving systems will have the facilities to process the received message and some will not. The problem is what to do in the presence of systems with different levels of capability.
Sirbu [Page 3]
RFC 1049 Mail Content Type March 1988
1. Each mail system maintains a database of capabilities of remote systems it knows how to send to. Such a database would be very difficult to keep up to date.
Sirbu [Page 4]
RFC 1049 Mail Content Type March 1988 3. The Content-type Header FieldWhatever structuring technique is specified by the Content-type field, it must be known precisely to both the sender and the recipient of the message in order for the message to be properly interpreted. In general, this means that the allowed parameter values for the Content-type: field must identify a well-defined, standardized, document structuring technique. We do not preclude, however, the use of a Content-type: parameter value to specify a private structuring technique known only to the sender and the recipient.
3.1. Type Values
Initially, the type parameter would be limited to the following set of values:
SCRIBE Indicates the document contains embedded formatting
information according to the syntax used by the
Scribe document formatting language distributed by the Unilogic Corporation. [6]
Sirbu [Page 5]
RFC 1049 Mail Content Type March 1988
TEX Indicates the document contains embedded formatting
3.2. Version Number
Since standard structuring techniques in fact evolve over time, we leave room for specifying a version number for the content type. Valid values will depend upon the type parameter.
3.3. Resource Reference
resource-ref:= local-part As Apple has demonstrated with their implementation of the Laserwriter, a very general document structuring technique can be made more efficient by defining a set of macros or other similar resources to be used in interpreting any transmitted stream. The Macintosh transmits a LaserPrep file to the Laserwriter containing font and macro definitions which can be called upon by subsequent documents. The result is that documents as sent to the Laserwriter are considerably more compact than if they had to include the LaserPrep file each time. The Resource Reference parameter allows specification of a well known resource, such as a LaserPrep file, which should be used by the receiving system when processing the message.
Sirbu [Page 6]
RFC 1049 Mail Content Type March 1988
Resource references could also include macro packages for use with TEX or references to preprocessors such as eqn and tbl for use with troff. Allowed values will vary according to the type parameter.
3.4. Comment
The comment field can be any additional comment text the user desires. Comments are enclosed in parentheses as specified in RFC-822.
4. Conclusion
A standardized Content-type field allows mail reading systems to automatically identify the type of a structured message body and to process it for display accordingly. The strcutured message body must still conform to the RFC-822 requirements concerning allowable characters. A mail reading system need not take any specific action upon receiving a message with valid Content-Type header field. The ability to recognize this field and invoke the appropriate display process accordingly will, however, improve the readability of messages, and allow the exchange of messages containing mathematical symbols, or foreign language characters. In the near term, the major use of a Content-Type: header field is likely to be for designating the message body as containing a Page Definition Language representation such as Postscript.
Sirbu [Page 7]
RFC 1049 Mail Content Type March 1988
Additional type values shall be registered with Internet Assigned Numbers Coordinator at USC-ISI. Please contact: