ietf-corpus

rfc-1495

Mapping between X.400 and RFC-822 Message Bodies

H. Alvestrand, S. Kille, R. Miles, M. Rose, S. Thompson
date1993-08 streamIETF areaapp wgmimemhs statusPROPOSED STANDARD pages11 canonicalhttps://www.rfc-editor.org/rfc/rfc1495 doi10.17487/RFC1495
Since the introduction of X.400(84), there has been work ongoing for defining mappings between MHS and RFC-822. The most recent work in this area is RFC-1327 [3], which focuses primarily on translation of envelope and headers. This document is complimentary to RFC-1327 as it focuses on translation of the message body. [STANDARDS-TRACK]

obsoleted by

updates

Extracted elements (17)

design-rationale §1

MIME semantics are richer than MHS structuring semantics, so the mappings are not fully symmetric. MHS heading extensions are used to carry the additional MIME semantics (multipart subtype, partial message parameters) in order to provide reversible round-trip transformations.

email

design-rationale §2

The mappings are designed to support three scenarios: (1) arbitrary binary content exchange between MIME and MHS users, (2) MIME content-types tunneling through an MHS relay without loss, and (3) MHS body parts tunneling through a MIME relay without loss. MHS heading extensions carry additional MIME semantics to enable reversible transformations.

email

interoperability-note §3

The mapping is symmetric for three cases: (1) any atomic body part, (2) multipart/digest and multipart/mixed subtypes, and (3) message/rfc822. For other content-types (message/external-body, message/partial, nested multipart), asymmetric mappings apply.

email

normative-requirement §3.2.1.3 MUST

A nested multipart MIME content (which refers to a set of content-types, not a message) is always mapped to an IPMS.MessageBodyPart with an IPMS.BodyPart for each contained content-type.

email

normative-requirement §4 MUST

For T.61 string mapping: (1) ASCII-only strings are copied directly; (2) strings from an IANA-registered character set use encoded-words per RFC-1342; (3) strings from unregistered character sets use X.408 mappings to IA5. This applies only to human-readable fields (Subject and FreeForm Name).

email

normative-requirement §3.1 MUST NOT

If the IPMS.Body consists solely of a single IA5Text body part, the RFC-822 message body is NOT marked as a MIME content. This prevents RFC-822 mailers from invoking MIME functionality unnecessarily.

email

normative-requirement §3.2.1.2 SHOULD

MIME message/partial content maps to an MHS message using the PartialMessage heading extension derived from the message/partial parameters (number, total, id). When mapping MHS to MIME, if this heading is present, a message/partial should be generated.

email

normative-requirement §3.2.2 SHOULD

The multipart IPMS HeadingExtension should be generated for all multipart content-types with the enumerated value set according to the subtype. When mapping from MHS to MIME, if present, the appropriate multipart content-type should be generated.

email

normative-requirement §4 MUST

When mapping from RFC-822 headers, an encountered encoded-word is converted to T.61 if all characters are mappable to T.61; otherwise the encoded-word is copied directly into the T.61 string.

email

normative-requirement §3.2 MUST

When mapping from RFC-822 to X.400, if the 822.MIME-Version header field is present, a special algorithm is used to generate the IPMS.body based on the MIME content-type.

email

normative-requirement §3.1 MUST

When mapping from X.400 to RFC-822, if the MHS body part is not identified in the IANA Equivalence Table, it is mapped onto an 'application/x400-bp' content as specified in RFC-1494.

email

normative-requirement §3.2.1.3 MUST

When mapping nested multipart content to MHS, the IPMS.this-IPM field must always be generated by the gateway. An IPMS.subject field should also be generated where there is no 'real' heading, to present useful information to non-MIME X.400 UAs.

email

protocol-element §5

OID assignments define the mime-mhs arc under internet.mail(7).mime-mhs(1), with mime-mhs-headings(1) containing id-hex-partial-message(1) and id-hex-multipart-message(2), and mime-mhs-bodies(2) for body part equivalences.

email, registry

protocol-element §3.2.2

The MultipartType IPMS HeadingExtension (OID id-hex-multipart-message) is an ENUMERATED type with values mixed(1), alternative(2), digest(3), parallel(4). It should be generated for all multipart content-types to enable round-trip fidelity.

email

protocol-element §3.2.1.2

The PartialMessage IPMS HeadingExtension (OID id-hex-partial-message) carries message/partial parameters: a SEQUENCE of INTEGER number, INTEGER total, and IA5String id. When present in MHS-to-MIME mapping, a message/partial content-type is generated.

email

registry §2

The IANA maintains the 'IANA MHS/MIME Equivalence Table' mapping MHS body part OIDs to MIME content-type/subtype pairs. If a new MIME content-type/subtype is registered without a corresponding entry, IANA assigns it an OID from the arc defined in this memo.

email, registry

security-consideration §6

Two mechanisms mapped by this document carry security risk: (1) binary file transfer carries inherent risks of malicious content, and (2) strong content typing can be used to automatically launch applications against received content, leaving the invoker vulnerable to application-specific viruses such as spreadsheet macros or PostScript commands that delete files.

email, security