Chapter 5 -- Protocol Elements: X.400 -> RFC 822 (Probe, Delivery Report, User MPDU)
5.4. X.400 -> RFC 822
5.4.1. General
This section describes how to build a pro-forma message, and
then explains how these defaults may be overridden. It should
be noted that RFC 822 folding of headers should be used in an
appropriate manner.
5.4.2. Service MPDU
5.4.2.1. Probe
Any P1.ProbeMPDU should be serviced by the gateway, as there
is no equivalent RFC 822 functionality. The value of the
reply is dependent on whether the gateway could service a
User MPDU with the values specified in the probe. The reply
should make use of P1.SupplementaryInformation to indicate
that the probe was serviced by the gateway.
5.4.2.2. Delivery Report
The 822-P1 components are constructed as follows:
822-P1 Originator
This is set to an 822.addr-spec pointing to an
administrator at the gateway.
822-P1 Recipient
The single recipient is constructed from
P1.DeliveryReportEnvelope.originator, using the
mappings of chapter 4.
The mandatory RFC 822 headers for an RFC 822 pro-forma are
constructed as follows:
Date:
From the P1.DomainSuppliedInfo.arrival component of
the first P1.TraceInformation component.
From:
This is set to the same as the 822-P1 originator. An
appropriate phrase component may be added (e.g. giving
the name of the gateway).
To:
The same as the 822-P1 recipient.
A Subject: field should be added, which contains some
appropriate words (e.g. "Delivery Report").
The other two P1.DeliveryReportEnvelope parameters should be
mapped as follows:
P1.DeliveryReportEnvelope.report
This should be mapped to a P1-Message-Id: field.
P1.DeliveryReportEnvelope.TraceInformation
Each component should be mapped to an "X400-Trace:"
field. RFC 822 and X.400 ordering should be
maintained (see 5.3).
The P1.DeliveryReportContent parameters should be mapped to
a series of new RFC 822 headers. These new headers are
intended for processing in the RFC 822 world. No attempt
will be made to reverse the mappings.
drc-field = "Delivery-Report-Content-Original"
":" msg-id
/ "Delivery-Report-Content-Intermediate-Trace"
":" x400-trace
/ "Delivery-Report-Content-UA-Content-ID"
":" printablestring
/ "Delivery-Report-Content-Billing-Information"
":" *text
/ "Delivery-Report-Content-Reported-Recipient-Info"
":" drc-info
drc-info = mailbox ";"
last-trace ";"
"ext" 1*DIGIT
"flags" 2DIGIT
[ "intended" mailbox ] ";"
[ "info" printablestring ]
last-trace = drc-report ";"
date-time ";"
[ "converted" "(" encoded-info ")"
drc-report = "SUCCESS" drc-success
/ "FAILURE" drc-failure
drc-success = date-time ";" 1*DIGIT
drc-failure = *text [ ";" *text ] ";"
There may be multiple
"Delivery-Report-Content-Intermediate-Trace:" and
"Delivery-Report-Content-Reported-Recipient-Info:" fields.
The msg-id for "Delivery-Report-Content-Original" is derived
according to the mapping of chapter 4. EBNF.drc-failure may
use numeric values or textual explanation. The latter is
preferred. All P1.DeliveryReportContent parameters are
mapped to the corresponding component. The order of
"Delivery-Report-Content-Intermediate-Trace:" should have
the most recently stamped one first.
The body of the RFC 822 message should be a human readable
description of the critical parts of the
P1.DeliveryReportContent. In particular, the failed
recipients, and failure reason should be given. Some or all
of the original message should be included in the delivery
report. The original message will be available at the
gateway, as discussed in section 5.3.
5.4.3. User MPDU
These elements are the basis for both Status Report and IP
Message.
The 822-P1 components are constructed as follows:
822-P1 Originator
This is derived from P1.UMPDUEnvelope.originator.
822-P1 Recipient
Each recipient is constructed from the P1.RecipientInfo,
as described in chapter 4. This describes actions as
well as format mappings.
The mandatory RFC 822 field pro-forma is derived as follows.
In most cases where the P1.UMPDUContent is an IP Message, these
defaults will be overridden:
Date:
From the P1.DomainSuppliedInfo.arrival component of the
first P1.TraceInformation component.
From:
From the P1.UMPDUEnvelope.originator, as defined in
chapter 4.
To:
This default is only required if the generated RFC 822
message has no destination specification. If
P1.PerMessageFlag.discloseRecipients is set then it
should contain the ORName in each P1.RecipientInfo
component. If it is not set, the it should be set to
"To: No Recipients Specified : ;".
The mappings, and any actions for each P1.UserMPDU element is
now considered.
P1.MPDUIdentifier
Mapped to the extended RFC 822 field "P1-Message-ID:".
Note that the sequence CRLF is mapped to SPACE, which
makes the mapping irreversible for such cases.
P1.UMPDUEnvelope.original
Mapped to the extended RFC 822 field
"Original-Encoded-Information-Types:". If it contains
only P2.IA5Text, the RFC 822 field may be omitted.
P1.ContentType
As this can currently only have one value, it is not
mapped, on the basis that it is redundant. If the field
contains any value other than P2, then the UMPDU should
be rejected.
P1.UAContentID
Mapped to the extended RFC 822 field "UA-Content-Id:".
P1.Priority
Mapped to the extended RFC 822 field "Priority:".
P1.PerMesageFlag
This has a number of components:
- discloseRecipients
If this bit is set, a "P1-Recipient:" field should
be generated, and contain each of the P1
recipients.
- conversionProhibited
If this bit is set, the message should be rejected
if it contains P2.BodyPart which is not P2.IA5Text
or P2.ForwardedIPMessage.
- alternateRecipientAllowed
The value of this bit is ignored.
- contentReturnRequest
The value of this bit is ignored.
P1.UMPDUEnvelope.deferredDelivery
This should be mapped to the extended RFC 822 field
"Deferred-Delivery:". X.400 profiles, and in particular
the CEN/CENELEC profile [CEN/CENELEC/85a], specify that
this element must be supported at the first MTA. Thus,
it is expected that the value of this element will always
be in the past. If it is not, the function may
optionally be implemented by the gateway: that is, the
gateway should hold the message until the time specified
in the protocol element. Thus the extended RFC 822 field
is just for information.
P1.PerDomainBilateralInformation
Each component should be encoded in the extended RFC 822
field "Bilateral-Info:". P1.BilateralInfo should be
mapped into ASCII in a manner appropriate to its
contents. This submapping is not reversible.
P1.TraceInformation
This should be mapped to "X400-Trace:", as for the
delivery report.