Skip to main content

Chapter 5 -- Protocol Elements: RFC 822 -> X.400

Chapter 5 -- Protocol Elements

   This chapter gives detailed mappings for the functions outlined in
   chapters 1 and 2.  It makes extensive use of the notations and
   mappings defined in chapters 3 and 4.  This chapter is structured as
   follows:

      5.1. Basic RFC 822 -> X.400 mappings

      5.2. A definition of some new RFC 822 elements, and their mapping
           to X.400.

      5.3  Some special handling associated with Return of Contents.

      5.4. X.400 -> RFC 822

   5.1.  RFC 822 -> X.400

      First, the basic functions of an 822-P1 protocol should be mapped
      as follows:

         822-P1 Originator

            Mapped to P1.UMPDUEnvelope.originator (see chapter 4).

         822-P1 Recipient

            Mapped to P1.RecipientInfo (see chapter 4).

      The RFC 822 headers are used to generate both a P1.UMPDUEnvelope
      and a P2.Heading.  The IP Message will have either one or two
      P2.BodyParts which will be type P2.IA5Text with no
      P2.IA5Text.repertoire component. The last P2.BodyPart will contain
      the RFC 822 message body.  If there are any RFC 822 headers which
      indicate mapping into the P2.BodyPart, then two P2.BodyParts are
      generated.  If a revised version of P2 allowed for extensible
      header specification, this would be seen as a preferable mapping.
      The first body part will start with the line:

         RFC-822-Headers:

      The rest of this body part will contain all of the headers not
      otherwise mapped (both 822.field-name and 822.field-body).  The
      order of any such headers should be preserved.  Similarly,
      ordering within P2.Heading and P1.UMPDUEnvelope should reflect
      ordering within the RFC 822 header.  No P1 or P2 optional fields
      are generated unless specified.

      A pro-forma X.400 message is now specified.  Some of these
      defaults may be changed by the values in the RFC 822 message being
      mapped.  The mandatory P1 and P2 components have the following
      defaults.

         P1.MPDUIdentifier

            The default should be unique value generated by the gateway.

         P1.OriginatorORName

            Always generated from 822-P1.

         P1.ContentType

            P1.ContentType.p2

         P1.RecipientInfo

            These will always be supplied from 822-P1.

         P1.Trace

            The last P1.TraceInformation component is generated such
            that: P1.TraceInformation.GlobalDomainIdentifier is set to
            the local vaglue.  P1.DomainSuppliedInfo.action is set to
            relayed. P1.DomainSuppliedInfo.arrival is set to the current
            time. P1.DomainSuppliedInfo.previous may be set if there is
            anything sensible to set it to.

         P2.IPMessageID

            The default should be a unique value generated by the
            gateway.

      The following optional parameters should be set:

         P1.PerMessageFlag

            The P1.PerMessageFlag.contentReturnRequest bit should be set
            according to the discussion in section 5.3.  The
            P1.PerMessageFlag.alternateRecipientAllowed bit should be
            set, as it seems desirable to maximise opportunity for
            (reliable) delivery.

      The RFC 822 headings should be mapped as follows:

         Received:

            Fudged onto P1.TraceInformation (try not to grimace too
            much). P1.DomainSuppliedInfo.action is set to relayed.
            P1.DomainSuppliedInfo.arrival is set to the date-time
            component P1.TraceInformation.GlobalDomainIdentifier has
            P1.CountryName as a null string, and
            P1..AdministrationDomainName as the domain of the receiving
            host (if present - null string if not).
            P1.DomainSuppliedInfo.previous has P1.CountryName as a null
            string, and P1.AdministrationDomainName has the domain of
            the sending host with all other information enclosed in
            round parentheses.  The encoding of ASCII to PrintableString
            (chapter 3) should be used if needed.  For example:

               Received: from 44e.cs.ucl.ac.uk by vax2.Cs.Ucl.AC.UK
                              with SMTP  id a002110; 18 Dec 85 10:40 GMT

                  maps to -

                  P1.GlobalDomainIdentifier
                     CountryName                  = ""
                     AdministrationDomainName     = "vax2.Cs.Ucl.AC.UK"
                  P1.DomainSuppliedInfo
                     arrival                      = 18 Dec 85 10:40 GMT
                     action                       = relayed
                     previous
                        CountryName               = ""
                        AdministrationDomainName  =
                               "44e.cs.ucl.ac.uk (with SMTP id a002110)"

         Date:

            This is used to set the first component of
            P1.TraceInformation. The mandatory components are set as
            follows:

               P1.GlobalDomainIdentifier
                  CountryName                  = ""
                  AdministrationDomainName     = ""
               P1.DomainSuppliedInfo
                  arrival                      = time derived from Date:
                  action                       = relayed

            No optional fields are used in the trace.

         Message-Id:

            Mapped to P2.IPMessageID.  If the RFC 822 message does not
            contain a P1-Message-ID: field, the Message-Id: field is
            also mapped to P1.MPDUIdentifier.  For these, and all other
            fields containing msg-id the mappings of chapter 4 are used
            for each msg-id.

         From:

            If Sender: is present, this is mapped to
            P2.AuthorisingUsers.  If not, it is mapped to P2.Originator.
            For this, and other components containing addresses, the
            mappings of chapter 4 are used for each address.

         Sender:

            Mapped to P2.Originator.

         Reply-To:

            Mapped to P2.Heading.replyToUsers.

         To:

            Mapped to P2.Heading.primaryRecipients

         Cc:

            Mapped to P2.Heading.copyRecipients.

         Bcc:

            Mapped to P2.Heading.blindCopyRecipients.

         In-Reply-To:

            Mapped to P2.Heading.inReplyTo for the first (if any)
            822.msg-id component.  If the field contains an 822.phrase
            component, or there are multiple 822.msg-id components, the
            ENTIRE field is passed in the P2.BodyPart.

         References:

            Mapped to P2.Heading.crossReferences.

         Keywords:

            Passed in the P2.BodyPart.

         Subject:

            Mapped to P2.Heading.subject.  The field-body uses the
            mapping referenced in chapter 3 from ASCII to T.61.

         Comments:

            Passed in the P2.BodyPart.

         Encrypted:

            Passed in the P2.BodyPart.

         Resent-*

            Passed in the P2..BodyPart <8>.

         Other Fields

            In particular X-* fields, and "illegal" fields in common
            usage (e.g. "Fruit-of-the-day:") are passed in the
            P2.BodyPart.  The same treatment should be applied to
            RFC 822 fields where the content of the field does not
            conform to RFC 822 (e.g. a Date: field with unparsable
            syntax).