Skip to main content

7. Equivalence Definitions

7.1. IA5Text - text/plain​

X.400 Body Part: IA5Text MIME Content-type: text/plain; charset=US-ASCII Conversion Type: Byte copy Comments: When mapping from X.400 to MIME, the "repertoire" parameter is ignored. When mapping from MIME to X.400, the "repertoire" parameter is set to IA5 (5). NOTE: The MIME Content-type headers are omitted, when mapping from X.400 to MIME, if and only if the IA5Text body part is the only body part in the IPMS.Body sequence. NOTE: IA5Text specifies the "currency" symbol in position 2/4. This is converted without comment to the "dollar" symbol, since the author of this document has seen many documents in which the position was intended to indicate "dollar" while he has not yet seen one in which the "currency" symbol is intended. (For reference: The T.50 (1988) recommendation, which defines IA5, talks about ISO registered set number 2, while ASCII, using the "dollar" symbol, is ISO registered set number 6. There are no other differences.)

7.2. GeneralText - text/plain (ISO-8859)​

X.400 Body Part: GeneralText; CharacterSets in

                        6,100,101,109,110,126,127,138,144,148

MIME Content-Type: text/plain; charset=ISO-8859-(1-9) Conversion Type: Byte copy Comments: When mapping from X.400 to MIME, the character-set chosen from table below according to the value of Parameters.CharacterSets. When mapping from MIME to X.400, GeneralText is an Extended Body Part, hence it requires an OID. The OID for the GeneralText body is defined in [5], part 8, annex D, as {2 6 1 4 11}. The OID for the parameters is {2 6 1 11 11}. The Parameters.CharacterSets is set from table below according to the value of "charset" NOTE: The GeneralText body part is defined in ISO 10021-8 [5], and NOT in the corresponding CCITT recommendation. Its parameters were heavily modified in a defect report, and will be a SET OF INTEGER (indicating the ISO registry numbers of all the used sets) in the next version of the standard.

The following table lists the MIME character sets and the corresponding ISO registry numbers. If no correspondence is found, this conversion fails, and the generic body part approach is used. MIME charset ISO IR numbers Comment -----------------------------------------------ISO-8859-1 6, 100 West European "8-bit ASCII" ISO-8859-2 6, 101 East European ISO-8859-3 6, 109 ISO-8859-4 6, 110 ISO-8859-5 6, 144 Cyrillic ISO-8859-6 6, 127 Arabic ISO-8859-7 6, 126 Greek ISO-8859-8 6, 138 Hebrew ISO-8859-8 6, 148 Other Latin-using languages When converting from MIME to X.400, generate the correct OIDs for use in the message envelope's Encoded Information Types by looking up the ISO IR number in the above table, and then appending it to the id-cs-eit-authority {1 0 10021 7 1 0} OID. The escape sequences to designate and invoke the relevant character sets in their proper positions must be added to the front of the GeneralText character string.

7.3. BilaterallyDefined - application/octet-stream​

X.400 Body Part: BilaterallyDefined MIME Content-Type: Application/Octet-Stream (no parameters) Conversion Type: Byte copy Comments: When mapping from MIME to X.400, if there are parameters present in the Content-Type: header field, the conversion fails since the BilaterallyDefined Body Part does not have any corresponding ASN.1 parameters. DISCUSSION: The parameters "name" "type" and "conversions" are advisory, but may in some cases give vital hints on the expected handling of the file. The parameter "conversions" is not fully defined, but it is expected that it will be useful, so we cannot drop it and expect people to be satisfied. The parameter "padding" changes the interpretation of the last byte of the data, and so cannot be deleted. An option is to prepend an IA5 body part that contains the parameter text; this will aid unmodified readers, and can probably be made reversible with suitable chicanery, but is it worth it???? Also, use of BilaterallyDefined Body Parts is specifically deprecated in both 1988 and 1992 X.400. It is retained solely for backward compatibility with 1984 systems. 1992 X.400 defines a File Transfer Body Part to solve this problem (i.e. binary file transfer through email). The standard and its regional profiles are not solid enough yet to exploit as a solution for this problem.

7.4. ODA - application/oda​

X.400 Body Part: ODA MIME Content-Type: application/oda Conversion Type: Byte copy Comments: The ODA body part is defined in the CCITT document T.411 [6], appendix E, section E.2, "ODA identification in the P2 protocol of MHS" An abbreviated version of its ASN.1 definition is:

    oda-body-part EXTENDED-BODY-PART-TYPE
PARAMETERS OdaBodyPartParameters
DATA OdaData
::= id-et-oda

OdaBodyPartParameters ::= SET {
document-application-profile [0] OBJECT IDENTIFIER
document-architecture-class [1] INTEGER {
formatted (0)
processable (1)
formatted-processable(2)}}

id-et-oda OBJECT IDENTIFIER ::= { 2 8 1 0 1 }

Mapping from X.400 to MIME, the following is done: The Parameters.document-application-profile is mapped onto the MIME parameter "profile" according to the table below.

    Profile         OBJECT IDENTIFIER

Q112 { iso (1) identified-organization (3) ewos (16)
eg (2) oda (6) profile (0) q112 (1) }

The Parameters.document-architecture-class is mapped onto the MIME parameter "class" according to the table below

    String                  Integer

formatted formatted(0)
processable processable(1)
formatted-processable formatted-processable(2)

NOTE: This parameter is not defined in RFC 1341. The body of the MIME content-type is the Data part of the ODA body part. When mapping from MIME to X.400, the following steps are done: The Parameters.document-application-profile and Parameters.document-architecture-class are set from the tables above. If any of the parameters are missing, the values for Q112 and formatted-processable are used. It is an option for the gateway implementor to try to access them from inside the document, where they are defined as document-profile.document-characteristics.document-architecture-class document-profile.document-characteristics.document-application-profile Gateways are NOT required to do this, since the document-characteristics are optional parameters. If a gateway does not, it simply uses the defaulting rules defined above. The OBJECT IDENTIFIERs for the document application profile and for ODA {2 8 0 0} must be added to the Encoded Information Types parameter of the message envelope.

7.5. g3-facsimile - image/g3fax​

X.400 Body part: g3-facsimile MIME Content-Type: image/g3fax Conversion Type: nearly Byte copy Comments: The Parameters of the X.400 G3Fax body part are mapped to the corresponding Parameters on the MIME Image/G3Fax body part and vice versa. Note that:

    (1)  If fineResolution is not specified, pixels will be
twice as tall as they are wide

(2) If any bit not corresponding to a specially named
option is set in the G3Fax NonBasicParameters, the
"DCS" parameter must be used.

(3) Interworking is not guaranteed if any bit apart from
those specially named are used in the
NonBasicParameters

From X.400 to G3Fax, the body is created in the following way:

    (1)  Any trailing EOL markers on each bitstring is
removed. The bistring is padded to a byte boundary.

(2) 6 consecutive EOL markers are appended to each
bitstring.

(3) The padded bitstrings are concatenated together

An EOL marker is the bit sequence 000000000001 (11 zeroes and a one). From G3Fax to X.400, the body is created in the following way:

    (1)  The body is split into bitstrings at each occurrence
of 6 consecutive EOL markers, and trailing EOLs and
padding are removed

(2) Each bitstring is made into an ASN.1 BITSTRING

(3) The bitstrings are made into an ASN.1 SEQUENCE, which
forms the body of the G3Fax body part.

7.6. application/postscript - postscript-body-part​

X.400 Body Part: Extended Body Part, OID postscript-body-part MIME Content-Type: application/postscript Conversion Type: Byte Copy

7.7. application/jpeg - jpeg-body-part​

X.400 Body Part: Extended Body Part, OID jpeg-body-part MIME Content-Type: application/jpeg Conversion Type: Byte Copy

7.8. image/gif - gif-body-part​

X.400 Body Part: Extended Body Part, OID gif-body-part MIME Content-Type: application/gif Conversion Type: Byte Copy