Skip to main content

Chapter 5 -- Protocol Elements: Extended RFC 822 Elements and Return of Contents

   5.2.  Extended RFC 822 Elements -> X.400

      First an EBNF definition of a number of extended fields is given,
      and then a mapping to X.400 is defined.  In most cases, the
      RFC 822 syntax is defined to make this mapping very
      straightforward, and so no detailed explanation of the mapping is
      needed.

         extended-field  = "P1-Message-ID" ":" p1-msg-id
                         / "X400-Trace" ":" x400-trace
                         / "Original-Encoded-Information-Types"
                            ":"encoded-info
                         / "P1-Content-Type" ":" p1-content-type
                         / "UA-Content-ID" ":" printablestring
                         / "Priority" ":" priority
                         / "P1-Recipient" : 1 mailbox
                         / "Deferred-Delivery" ":" date-time
                         / "Bilateral-Info" ":" bilateral-info
                         / "Obsoletes" ":" 1 msg-id
                         / "Expiry-Date" ":" date-time
                         / "Reply-By" ":" date-time
                         / "Importance" ":" importance
                         / "Sensitivity" ":" sensitivity
                         / "Autoforwarded" ":" boolean

         p1-msg-id       = global-id ";" *text

         p1-content-type = "P2" / atom

         x400-trace      = global-id ";"
                         "arrival" date-time
                         [ "deferred" date-time ]
                         [ "action" action ]
                         [ "converted" "(" encoded-info ")" ]
                         [ "previous" global-id ]

         action          = "Relayed" / "Rerouted" / escape

         global-id       = c "*" admd [ "*" prmd ]

         encoded-info    = 1 encoded-type

         encoded-type    = "Undefined"           ; undefined (0)
                         / "Telex"               ; tLX (1)
                         / "IA5-Text"            ; iA5Text (2)
                         / "G3-Fax"              ; g3Fax (3)
                         / "TIF0"                ; tIF0 (4)
                         / "Teletex"             ; tTX (5)
                         / "Videotex"            ; videotex (6)
                         / "Voice"               ; voice (7)
                         / "SFD"                 ; sFD (8)
                         / "TIF1"                ; tIF1 (9)
                         / escape

         priority        = "normal" / "non-urgent" / "urgent" / escape

         bilateral-info  = c "*" admd "*" *text

         importance      = "low" / "normal" / "high" / escape

         sensitivity     = "Personal" / "Private"
                         / "Company-Confidential" / escape

         escape          = 1*DIGIT

      With the exception of "Bilateral-Info:" and "X400-Trace:", there
      must be no more than one of each of these fields in an RFC 822
      header.  Any field beginning with the String "Autoforwarded-" is
      valid if the field would be syntactically valid with this string
      removed.

      The mappings to X.400 are as follows:

         P1-Message-ID:

            Mapped to P1.UMPDUEnvelope.MPDUIdentifier.  This take
            precedence over any value derived from Message-ID:.

         X400-Trace:

            Mapped to the next component of
            P1.UMPDUEnvelope.Traceinformation.  Care should be taken to
            preserve order.  If one or more of these mappings is made,
            then a trace component should NOT be generated from the
            Date: field which should be redundant.  This is because the
            message has previously come from X.400, and the Date:
            information will be redundant.  Note that all trace
            information (Received: and "X400-Trace:") in the RFC 822
            message will be in strict order, with the most recent at the
            top.  This order should be preserved in the mapping.

         Original-Encoded-Information-Types:

            This is used to set P1.UMPDUEnvelope.original.
            P1.EncodedInformationTypes.[0] has bits set according to
            each of the encoded-info components in this field.  Any
            escape values should not be encoded.

         P1-Content-Type:

            If the value is anything other than "P2", the mapping should
            not be performed (unless the new value has some semantics to
            the gateway).

         UA-Content-ID:

            Mapped to P1.UMPDUEnvelope.UAContentID.

         Priority:

            Mapped to P1.UMPDUEnvelope.Priority.  An escape value should
            be encoded as P1.Priority.normal.

         P1-Recipient:

            If this field is set, the
            P1.PerMessageFlag.discloseRecipients bit should be set.  Any
            of the addresses here which do not correspond to 822-P1
            recipients should be added to the P1 recipient list, with
            the responsibility bit turned off.

         Deferred-Delivery:

            Mapped to P1.UMPDUEnvelope.deferredDelivery.  Note that the
            value of this field should always be in the past, as this
            field should only be present in messages which have come
            originally from X.400.  Thus there should be no implied
            action.  See also the comments on the reverse mapping.

         Bilateral-Info:

            No attempt is made to reconvert this information back to
            X.400.

         Obsoletes:

            Mapped to P2.Heading.obsoletes.

         Expiry-Date:

            Mapped to P2.Heading.expiryDate.

         Reply-By:

            Mapped to P2.Heading.replyBy.

         Importance:

            Mapped to P2.Heading.importance.  An escape value should be
            encoded as P2.Heading.importance.normal.

         Sensitivity:

            Mapped to P2.Heading.sensitivity.  An escape value should be
            encoded as P2.Heading.sensitivity.normal.

         Autoforwarded:

            If this field is present and the value is "TRUE", there will
            be zero or more field names beginning "Autoforwarded-".
            These should be taken, and the string "Autoforwarded-"
            stripped.  These fields, in conjunction with the 822-P1
            information should be used to build an IP Message.  Any
            implied actions should be taken. P2.Heading.autoforwarded is
            set in this message.  The other RFC 822 fields are used to
            build another IP Message, which is used as the single body
            part of the first message.  This mechanism does not nest.

   5.3.  Return of Contents

      It is not clear how widely supported X.400 return of contents
      service will be.  However, profiling work suggests that most
      systems will not support this service.  As this service is
      expected in the RFC 822 world, two approaches are specified (it is
      not so necessary in the X.400 world, as delivery reports are
      distinguished from messages).  The choice will depend on the
      service level of the X.400 community being serviced by the
      gateway.

      In environments where return of contents is widely supported, the
      P1.PerMessageFlag content return request bit will be set, and the
      Report Request bit in P1.PerRecipientFlag will be set to
      Confirmed, for every message passing from RFC 822 -> X.400.  The
      content return service can then be passed back to the end
      (RFC 822) user in a straightforward manner.

      In environments where return of contents is not widely supported,
      a gateway must make special provisions to handle return of
      contents.  For every message passing from RFC 822 -> X.400, the
      P1.PerMessageFlag content return request bit will be set, and the
      Report Request bit in P1.PerRecipientFlag will be set to
      Confirmed.  When the delivery report comes back, the gateway can
      note that the message has been delivered to the recipient(s) in
      question.  If a non-delivery report is received, a meaningful
      report (containing some or all of the original message) can be
      sent to the 822-P1 originator.  If no report is received for a
      recipient, a (timeout) failure notice should be sent to the 822-P1
      originator.  The gateway may retransmit the X.400 message if it
      wishes.  Delivery confirmations should only be sent back to the
      822-P1 originator if the P1.PerRecipientFlag User Report Request
      bit is set to Confirmed.