Skip to main content

Appendices A-B -- Quoted String Encodings and JNT Mail

Appendix A -- Quoted String Encodings

   This Appendix describes a quoting mechanism which may be used to
   allow general interworking between RFC 822, and variants of RFC 822
   which do not support 822.quoted-string.  This is important, as the
   basic X.400 <-> RFC 822 mapping makes use of 822.quoted-string.

   1.  ASCII <-> 822.atom

      The following EBNF is specified.

         atom-encoded    = *( a-char / a-encoded-char )
         a-char          = <any CHAR except specials, SPACE,
                                 CTL, "_", and "#">
         a-encoded-char  = "_"                   ; (space)
                         / "#u#"                 ; (_)
                         / "#l#"                 ; <(>
                         / "#r#"                 ; <)>
                         / "#m#"                 ; (,)
                         / "#c#"                 ; (:)
                         / "#b#"                 ; (\)
                         / "#h#"                 ; (#)
                         / "#e#"                 ; ($=)
                         / "#s#"                 ; ($/)
                         / "#" 3DIGIT "#"

      NOTE: There are two encodings of double characters.  This is so
      that systems using this encoding, do not also need to know about
      the "$" quoting mechanism defined in chapter 4.

      The 822.3DIGIT in EBNF.a-encoded-char must have range 0-127
      (Decimal), and is interpreted in decimal as the corresponding
      ASCII character.  The choice of special abbreviations (as opposed
      to octal encoding) provided is based on the manner in which this
      mapping is most frequently used: encoding PrintableString
      components of O/R names as atom.  Therefore, there are special
      encodings for each of the PrintableString characters not in
      EBNF.a-char, except ".".  Space is given a single character
      encoding, due to its (expected) frequency of use, and backslash as
      the RFC 822 single quote character.

      To encode (ASCII -> atom): all EBNF.a-char are used directly and
      all other CHAR are encoded as EBNF.a-encoded-char.  To decode
      (822.atom -> ASCII): if 822.atom can be parsed as
      EBNF.encoded-atom reverse the previous mapping.  If it cannot be
      so parsed, map the characters directly.

   2.  822.local-part <-> ASCII

      A related transformation is for 822.local-part (or other element
      defined as '822.word ("." 822.word)') where not 822.quoted-text is
      used.  To encode (ASCII -> 822.local-part), all EBNF.a-char and
      "." are used directly and all other 822.CHAR are encoded as
      EBNF.a-encoded-char.  To decode (822.local-part -> ASCII), first
      attempt to parse 822.local-part as '822.atom *("." 822.atom)'.  If
      this fails, or if each 822.atom cannot be parsed as
      EBNF.atom-encoded then map each character directly.  Otherwise map
      each "." directly, and each atom as in the previous section.

      There are places where it is needed to convert between
      PrintableString or IA5Text (X.400), and 822.word (RFC 822).  word
      may be encoded as 822.atom (which has a restricted character set)
      or as 822.quoted-string, which can handle all ASCII characters.
      If 822.quoted-string is used, clearly the mappings for
      PrintableString defined in Chapter 3 provide a straightforward
      mapping.  However, some RFC 822 based networks cannot handle the
      822.quoted-string format in all cases.  This Appendix is for use
      in these cases.  The major requirement for this mapping is the
      UNIX world, but it may well be needed in other places.

      These mappings are somewhat artificial, and their usage is
      discouraged, except in cases where there is no alternative.

Appendix B -- Mappings Specific to JNT Mail

   This Appendix is specific to the JNT Mail Protocol.  It describes
   specific changes in the context of this protocol.  Addressing is not
   discussed here, as it is covered in Appendix A.

   1.  Introduction

      There are four aspects of a gateway which are JNT Mail Specific,
      in addition to those relating to addressing.  These are each given
      a section of this appendix.

   2.  Acknowledge-To:

      This field has no direct functional equivalent in X.400.  However,
      it can be supported to an extent, and can be used to improve X.400
      support.

      When going from JNT Mail to X.400, the User Report Request bits of
      each P1.RecipientInfo.perRecipientFlag should be set to confirmed.
      If there is more that one address in the Acknowledge-To: field, or
      if the one address is not equivalent to the 822-P1 return address,
      then:

         a.   Acknowledgement(s) should be generated by the gateway.
              The text of these acknowledgements should indicate that
              they are generated by the gateway.

         b.   The Acknowledge-To: field should also be passed in the
              first P2.BodyPart.

      When going from X.400 to JNT Mail, in cases where
      P1.RecipientInfo.perRecipientFlag has the user bits set to
      confirmed the copy of the message to that recipient should have an
      Acknowledge-To: field containing the P.UMPDUEnvelope.originator.
      No attempt should be made to map Receipt notification requests
      onto Acknowledge-To:.  This is because no association can be
      guaranteed between P2 and P1 level addressing information.

   3.  Trace

      JNT Mail trace uses the Via: syntax.  When going from JNT Mail to
      X.400, the following mapping onto P1.TraceInformation is used.

         P1.DomainSuppliedInfo.action is set to relayed.

         P1.DomainSuppliedInfo.arrival is set to the date-time component
         of the Via: field.  P1.DomainSuppliedInfo.previous has
         P1.CountryName as a null string, and
         P1.AdministrationDomainName as the domain specified in the Via:
         field.
         P1.TraceInformation.GlobalDomainIdentifier has P1.CountryName
         as a null string, and P1.AdministrationDomainName as any
         commented information in the Via: field.  For example:

            Via: UK.AC.Edinburgh ; 17 Jun 85 9:15:29 BST (EMAS V7)

            maps to -

            P1.GlobalDomainIdentifier
               CountryName                  = ""
               AdministrationDomainName     = "(EMAS V7)"
            P1.DomainSuppliedInfo
               arrival                      = 17 Jun 85 9:15:29 BST
               action                       = relayed
               previous
                  CountryName               = ""
                  AdministrationDomainName  = "UK.AC.Edinburgh"

   4.  Timezone specification

      The extended syntax of zone defined in the JNT Mail Protocol
      should be used in the mapping of UTCTime defined in chapter 3.

   5.  Lack of separate 822-P1 originator specification

      In JNT Mail the default mapping of the P1.MPDUEnvelope.originator
      is to the Sender: field.  This can cause a problem if the mapping
      of P2.Heading has already generated a Sender: field.  To overcome
      this, new extended JNT Mail field is defined.  This is chosen to
      align with the JNT recommendation for interworking with full
      RFC 822 systems [Kille84b].

         original-sender     = "Original-Sender" ":" mailbox

      If an IPM has no P2.heading.authorisingUsers component and
      P2.Heading.originator.ORName is different from
      P1.UMPDUEnvelope.originator, map P1.MPDUEnvelope.originator onto
      the Sender: field.

      If an IPM has a P2.heading.authorisingUsers component, and
      P2.Heading.originator.ORName is different from
      P1.UMPDUEnvelope.originator, P1.MPDUEnvelpoe.originator should be
      mapped onto the Sender: field, and P2.Heading.originator mapped
      onto the Original-Sender: field.

      In other cases the P1.MPDUEnvelope.Originator is already correctly
      represented.

      Note that in some pathological cases, this mapping is
      asymmetrical.