📄 rfc1872.txt
字号:
Network Working Group E. LevinsonRequest for Comments: 1872 Accurate Information Systems, Inc.Category: Experimental December 1995 The MIME Multipart/Related Content-typeStatus of this Memo This memo defines an Experimental Protocol for the Internet community. This memo does not specify an Internet standard of any kind. Discussion and suggestions for improvement are requested. Distribution of this memo is unlimited.Abstract The Multipart/Related content-type provides a common mechanism for representing objects that are aggregates of related MIME body parts. This document defines the Multipart/Related content-type and provides examples of its use.1. Introduction Several applications of MIME, including MIME-PEM, and MIME-Macintosh and other proposals, require multiple body parts that make sense only in the aggregate. The present approach to these compound objects has been to define specific multipart subtypes for each new object. In keeping with the MIME philosophy of having one mechanism to achieve the same goal for different purposes, this document describes a single mechanism for such aggregate or compound objects. The Multipart/Related content-type addresses the MIME representation of compound objects. The object is categorized by a "type" parameter. Additional parameters are provided to indicate a specific starting body part or root and auxiliary information which may be required when unpacking or processing the object. Responsibility for the display or processing of a Multipart/Related's constituent entities rests with the application that handles the compound object.Levinson Experimental [Page 1]RFC 1872 Multipart/Related December 19952. Multipart/Related Registration Information The following form is copied from RFC 1590, Appendix A. To: IANA@isi.edu Subject: Registration of new Media Type content-type/subtype Media Type name: Multipart Media subtype name: Related Required parameters: Type, a media type/subtype. Optional parameters: Start, a content-id. Start-info, a string or content-id list. Encoding considerations: Multipart content-types cannot have encodings. Security considerations: Depends solely on the referenced type. Published specification: This document. Person & email address to contact for further information: Edward Levinson Accurate Information Systems, Inc. 2 Industrial Way Eatontown, NJ 07724 +1 908 389 5550 +1 908 389 5556 (fax) ELevinson@Accurate.com3. Intended usage The Multipart/Related media type is intended for compound objects consisting of several inter-related body parts. For a Multipart/Related object, proper display cannot be achieved by individually displaying the constituent body parts. The content-type of the Multipart/Related object is specified by the type parameter. The "start" parameter, if given, points, via a content-ID, to the body part that contains the object root. The default root is the first body part within the Multipart/Related body. The relationships among the body parts of a compound object distinguishes it from other object types. These relationships are often represented by links internal to the object's components that reference the other components. Within a single operating environment the links are often file names, such links may beLevinson Experimental [Page 2]RFC 1872 Multipart/Related December 1995 represented within a MIME message using content-IDs or the value of some other "Content-" header.3.1. The Type Parameter The type parameter must be specified and its value is the MIME media type of the root body part. It permits a MIME user agent to determine the content-type without reference to the enclosed body part. If the value of the type parameter and the root body part's content-type differ then the User Agent's behavior is undefined. Note: Constraining the "type" parameter's value to an existing media type allows the appropriate processing to be identified without creating yet another hierarchy of registered types. A possible default action would have the MIME mail User Agent (MUA) to display the "start" entity alone when it could process the media type as a basic type but not as Multipart/Related.3.2. The Start Parameter The start parameter, if given, is the content-ID of the compound object's root. If not present the root is the first body part in the Multipart/Related entity. The root is the element the application processes first. In the case of a Multipart/Alternative body part containing several entities with identical content-IDs the start entity should be selected using the Multipart/Alternative rules. Note: The "start" parameter allows for types in which the root element gets generated by the sending application, perhaps on the fly. Such an application can create the "start" content-id when processing begins and then insert the body part when it is complete.3.3. The Start-Info Parameter Additional information can be provided to an application by the start-info parameter. It contains either a string or points, via a content-ID, to another MIME entity in the message. A typical use might be to provide additional command line parameters or a MIME entity giving auxiliary information for processing the compound object. Applications that use Multipart/Related must specify the interpretation of start-info. User Agents shall provide the parameter's value to the processing application. Processes can distinguish a start-info reference from a token or quoted-string by examining the first non-white-space character, "<" indicates aLevinson Experimental [Page 3]RFC 1872 Multipart/Related December 1995 content-id reference.3.4. Syntax related-param := [ ";" "start" "=" cid ] [ ";" "start-info" "=" ( cid-list / value ) ] [ ";" "type" "=" type "/" subtype ] ; order independent cid-list := cid cid-list cid := msg-id ; c.f. [822] value := token / quoted-string ; c.f. [MIME] ; value cannot begin with "<" Note that the parameter values will usually require quoting. Msg-id contains the special characters "<", ">", "@", and perhaps other special characters. If msg-id contains quoted-strings, those quote marks must be escaped. Similarly, the type parameter contains the special character "/".4. Examples4.1 Application/X-FixedRecord The X-FixedRecord content-type consists of one or more octet- streams and a list of the lengths of each record. The root, which lists the record lengths of each record within the streams. The record length list, type Application/X-FixedRecord, consists of a set of INTEGERs in ASCII format, one per line. Each INTEGER gives the number of octets from the octet-stream body part that constitute the next "record". The example below, uses a single data block which the sender processes on the fly to generate the record length list. Consequently the list appears after the data. Content-Type: Multipart/Related; boundary=example-1 start="<950120.aaCC@XIson.com>"; type="Application/X-FixedRecord" start-info="-o ps" --example-1 Content-Type: Application/octet-stream Content-Description: The fixed length records Content-Transfer-Encoding: base64Levinson Experimental [Page 4]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -