home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / r / rfc822.zip / RFC822.TXT < prev   
Text File  |  1987-04-19  |  132KB  |  3,334 lines

  1.  
  2.  
  3.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  4.  
  5.  
  6.                                   PREFACE
  7.  
  8.  
  9.           By 1977, the Arpanet employed several informal standards for
  10.      the  text  messages (mail) sent among its host computers.  It was
  11.      felt necessary to codify these practices and  provide  for  those
  12.      features  that  seemed  imminent.   The result of that effort was
  13.      Request for Comments (RFC) #733, "Standard for the Format of ARPA
  14.      Network Text Message", by Crocker, Vittal, Pogran, and Henderson.
  15.      The specification attempted to avoid major  changes  in  existing
  16.      software, while permitting several new features.
  17.  
  18.           This document revises the specifications  in  RFC  #733,  in
  19.      order  to  serve  the  needs  of the larger and more complex ARPA
  20.      Internet.  Some of RFC #733's features failed  to  gain  adequate
  21.      acceptance.   In  order to simplify the standard and the software
  22.      that follows it, these features have been removed.   A  different
  23.      addressing  scheme  is  used, to handle the case of inter-network
  24.      mail; and the concept of re-transmission has been introduced.
  25.  
  26.           This specification is intended for use in the ARPA Internet.
  27.      However, an attempt has been made to free it of any dependence on
  28.      that environment, so that it can be applied to other network text
  29.      message systems.
  30.  
  31.           The specification of RFC #733 took place over the course  of
  32.      one  year, using the ARPANET mail environment, itself, to provide
  33.      an on-going forum for discussing the capabilities to be included.
  34.      More  than  twenty individuals, from across the country, partici-
  35.      pated in  the  original  discussion.   The  development  of  this
  36.      revised specification has, similarly, utilized network mail-based
  37.      group discussion.  Both specification efforts  greatly  benefited
  38.      from the comments and ideas of the participants.
  39.  
  40.           The syntax of the standard,  in  RFC  #733,  was  originally
  41.      specified  in  the  Backus-Naur Form (BNF) meta-language.  Ken L.
  42.      Harrenstien, of SRI International, was responsible for  re-coding
  43.      the  BNF  into  an  augmented  BNF  that makes the representation
  44.      smaller and easier to understand.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- iiiiiiii ----                      RRRRFFFFCCCC ####888822222222
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  68.  
  69.  
  70.      _1.  _I_N_T_R_O_D_U_C_T_I_O_N
  71.  
  72.      _1._1.  _S_c_o_p_e
  73.  
  74.           This standard specifies a syntax for text messages that  are
  75.      sent  among  computer  users, within the framework of "electronic
  76.      mail".  The standard supersedes  the  one  specified  in  ARPANET
  77.      Request  for Comments #733, "Standard for the Format of ARPA Net-
  78.      work Text Messages".
  79.  
  80.           In this context, messages are viewed as having  an  envelope
  81.      and  contents.   The  envelope  contains  whatever information is
  82.      needed to accomplish transmission  and  delivery.   The  contents
  83.      compose  the object to be delivered to the recipient.  This stan-
  84.      dard applies only to the format and some of the semantics of mes-
  85.      sage  contents.   It contains no specification of the information
  86.      in the envelope.
  87.  
  88.           However, some message systems may use information  from  the
  89.      contents  to create the envelope.  It is intended that this stan-
  90.      dard facilitate the acquisition of such information by programs.
  91.  
  92.           Some message systems may  store  messages  in  formats  that
  93.      differ  from the one specified in this standard.  This specifica-
  94.      tion is intended strictly as a definition of what message content
  95.      format is to be passed _b_e_t_w_e_e_n hosts.
  96.  
  97.      Note:  This standard is _n_o_t intended to dictate the internal for-
  98.             mats  used  by sites, the specific message system features
  99.             that they are expected to support, or any of  the  charac-
  100.             teristics  of  user interface programs that create or read
  101.             messages.
  102.  
  103.           A distinction should be made between what the  specification
  104.      _r_e_q_u_i_r_e_s  and  what  it _a_l_l_o_w_s.  Messages can be made complex and
  105.      rich with formally-structured components of information or can be
  106.      kept small and simple, with a minimum of such information.  Also,
  107.      the standard simplifies the interpretation  of  differing  visual
  108.      formats  in  messages;  only  the  visual  aspect of a message is
  109.      affected and not the interpretation  of  information  within  it.
  110.      Implementors may choose to retain such visual distinctions.
  111.  
  112.           The formal definition is divided into four levels.  The bot-
  113.      tom level describes the meta-notation used in this document.  The
  114.      second level describes basic lexical analyzers that  feed  tokens
  115.      to  higher-level  parsers.   Next is an overall specification for
  116.      messages; it permits distinguishing individual fields.   Finally,
  117.      there is definition of the contents of several structured fields.
  118.  
  119.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 1111 ----                      RRRRFFFFCCCC ####888822222222
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  132.  
  133.  
  134.      _1._2.  _C_o_m_m_u_n_i_c_a_t_i_o_n _F_r_a_m_e_w_o_r_k
  135.  
  136.           Messages consist of lines of text.   No  special  provisions
  137.      are  made for encoding drawings, facsimile, speech, or structured
  138.      text.  No significant consideration has been given  to  questions
  139.      of  data  compression  or to transmission and storage efficiency,
  140.      and the standard tends to be free with the number  of  bits  con-
  141.      sumed.   For  example,  field  names  are specified as free text,
  142.      rather than special terse codes.
  143.  
  144.           A general "memo" framework is used.  That is, a message con-
  145.      sists of some information in a rigid format, followed by the main
  146.      part of the message, with a format that is not specified in  this
  147.      document.   The  syntax of several fields of the rigidly-formated
  148.      ("headers") section is defined in  this  specification;  some  of
  149.      these fields must be included in all messages.
  150.  
  151.           The syntax  that  distinguishes  between  header  fields  is
  152.      specified  separately  from  the  internal  syntax for particular
  153.      fields.  This separation is intended to allow simple  parsers  to
  154.      operate on the general structure of messages, without concern for
  155.      the detailed structure of individual header fields.   Appendix  B
  156.      is provided to facilitate construction of these parsers.
  157.  
  158.           In addition to the fields specified in this document, it  is
  159.      expected  that  other fields will gain common use.  As necessary,
  160.      the specifications for these "extension-fields" will be published
  161.      through  the same mechanism used to publish this document.  Users
  162.      may also  wish  to  extend  the  set  of  fields  that  they  use
  163.      privately.  Such "user-defined fields" are permitted.
  164.  
  165.           The framework severely constrains document tone and  appear-
  166.      ance and is primarily useful for most intra-organization communi-
  167.      cations and  well-structured   inter-organization  communication.
  168.      It  also  can  be used for some types of inter-process communica-
  169.      tion, such as simple file transfer and remote job entry.  A  more
  170.      robust  framework might allow for multi-font, multi-color, multi-
  171.      dimension encoding of information.  A  less  robust  one,  as  is
  172.      present  in  most  single-machine  message  systems,  would  more
  173.      severely constrain the ability to add fields and the decision  to
  174.      include specific fields.  In contrast with paper-based communica-
  175.      tion, it is interesting to note that the _r_e_c_e_i_v_e_r  of  a  message
  176.      can   exercise  an  extraordinary  amount  of  control  over  the
  177.      message's appearance.  The amount of actual control available  to
  178.      message  receivers  is  contingent upon the capabilities of their
  179.      individual message systems.
  180.  
  181.  
  182.  
  183.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 2222 ----                      RRRRFFFFCCCC ####888822222222
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  196.  
  197.  
  198.      _2.  _N_O_T_A_T_I_O_N_A_L _C_O_N_V_E_N_T_I_O_N_S
  199.  
  200.           This specification uses an augmented Backus-Naur Form  (BNF)
  201.      notation.  The differences from standard BNF involve naming rules
  202.      and indicating repetition and "local" alternatives.
  203.  
  204.      _2._1.  _R_u_l_e _n_a_m_i_n_g
  205.  
  206.           Angle brackets ("<", ">") are not  used,  in  general.   The
  207.      name  of  a rule is simply the name itself, rather than "<name>".
  208.      Quotation-marks enclose literal text (which may be  upper  and/or
  209.      lower  case).   Certain  basic  rules  are  in uppercase, such as
  210.      SPACE, TAB, CRLF, DIGIT, ALPHA, etc.  Angle brackets are used  in
  211.      rule  definitions,  and  in  the rest of this  document, whenever
  212.      their presence will facilitate discerning the use of rule names.
  213.  
  214.      _2._2.  _R_u_l_e_1 / _R_u_l_e_2:  _A_l_t_e_r_n_a_t_i_v_e_s
  215.  
  216.           Elements separated by slash ("/") are alternatives.   There-
  217.      fore "foo / bar" will accept foo or bar.
  218.  
  219.      _2._3.  (_R_u_l_e_1 _R_u_l_e_2):  _L_o_c_a_l _a_l_t_e_r_n_a_t_i_v_e_s
  220.  
  221.           Elements enclosed in parentheses are  treated  as  a  single
  222.      element.   Thus,  "(elem  (foo  /  bar)  elem)"  allows the token
  223.      sequences "elem foo elem" and "elem bar elem".
  224.  
  225.      _2._4.  *_R_u_l_e:  _R_e_p_e_t_i_t_i_o_n
  226.  
  227.           The character "*" preceding an element indicates repetition.
  228.      The full form is:
  229.  
  230.                               <l>*<m>element
  231.  
  232.      indicating at least <l> and at most <m> occurrences  of  element.
  233.      Default values are 0 and infinity so that "*(element)" allows any
  234.      number, including zero; "1*element" requires at  least  one;  and
  235.      "1*2element" allows one or two.
  236.  
  237.      _2._5.  [_R_u_l_e]:  _O_p_t_i_o_n_a_l
  238.  
  239.           Square brackets enclose optional elements; "[foo  bar]"   is
  240.      equivalent to "*1(foo bar)".
  241.  
  242.      _2._6.  _n_R_u_l_e:  _S_p_e_c_i_f_i_c _r_e_p_e_t_i_t_i_o_n
  243.  
  244.           "<n>(element)" is equivalent to "<n>*<n>(element)"; that is,
  245.      exactly  <n>  occurrences  of (element). Thus 2DIGIT is a 2-digit
  246.      number, and 3ALPHA is a string of three alphabetic characters.
  247.  
  248.  
  249.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 3333 ----                      RRRRFFFFCCCC ####888822222222
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  262.  
  263.  
  264.      _2._7.  #_R_u_l_e:  _L_i_s_t_s
  265.  
  266.           A construct "#" is defined, similar to "*", as follows:
  267.  
  268.                               <l>#<m>element
  269.  
  270.      indicating at least <l> and at most <m> elements, each  separated
  271.      by  one  or more commas (","). This makes the usual form of lists
  272.      very easy; a rule such as '(element *("," element))' can be shown
  273.      as  "1#element".   Wherever this construct is used, null elements
  274.      are allowed, but do not  contribute  to  the  count  of  elements
  275.      present.   That  is,  "(element),,(element)"  is  permitted,  but
  276.      counts as only two elements.  Therefore, where at least one  ele-
  277.      ment  is required, at least one non-null element must be present.
  278.      Default values are 0 and infinity so that "#(element)" allows any
  279.      number,  including  zero;  "1#element" requires at least one; and
  280.      "1#2element" allows one or two.
  281.  
  282.      _2._8.  ; _C_o_m_m_e_n_t_s
  283.  
  284.           A semi-colon, set off some distance to  the  right  of  rule
  285.      text,  starts  a comment that continues to the end of line.  This
  286.      is a simple way of including useful notes in  parallel  with  the
  287.      specifications.
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 4444 ----                      RRRRFFFFCCCC ####888822222222
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  326.  
  327.  
  328.      _3.  _L_E_X_I_C_A_L _A_N_A_L_Y_S_I_S _O_F _M_E_S_S_A_G_E_S
  329.  
  330.      _3._1.  _G_e_n_e_r_a_l _D_e_s_c_r_i_p_t_i_o_n
  331.  
  332.           A message consists of header fields and, optionally, a body.
  333.      The  body  is simply a sequence of lines containing ASCII charac-
  334.      ters.  It is separated from the headers by a null line  (i.e.,  a
  335.      line with nothing preceding the CRLF).
  336.  
  337.      _3._1._1.  _L_o_n_g _H_e_a_d_e_r _F_i_e_l_d_s
  338.  
  339.         Each header field can be viewed as a single, logical  line  of
  340.         ASCII  characters,  comprising  a field-name and a field-body.
  341.         For convenience, the field-body  portion  of  this  conceptual
  342.         entity  can be split into a multiple-line representation; this
  343.         is called "folding".  The general rule is that wherever  there
  344.         may  be  linear-white-space  (_n_o_t  simply  LWSP-chars), a CRLF
  345.         immediately followed by _a_t _l_e_a_s_t one LWSP-char may instead  be
  346.         inserted.  Thus, the single line
  347.  
  348.             To:  "Joe & J. Harvey" <ddd @Org>, JJV @ BBN
  349.  
  350.         can be represented as:
  351.  
  352.             To:  "Joe & J. Harvey" <ddd @ Org>,
  353.                     JJV@BBN
  354.  
  355.         and
  356.  
  357.             To:  "Joe & J. Harvey"
  358.                             <ddd@ Org>, JJV
  359.              @BBN
  360.  
  361.         and
  362.  
  363.             To:  "Joe &
  364.              J. Harvey" <ddd @ Org>, JJV @ BBN
  365.  
  366.              The process of moving  from  this  folded   multiple-line
  367.         representation  of a header field to its single line represen-
  368.         tation is called "unfolding".  Unfolding  is  accomplished  by
  369.         regarding   CRLF   immediately  followed  by  a  LWSP-char  as
  370.         equivalent to the LWSP-char.
  371.  
  372.         Note:  While the standard  permits  folding  wherever  linear-
  373.                white-space is permitted, it is recommended that struc-
  374.                tured fields, such as those containing addresses, limit
  375.                folding  to higher-level syntactic breaks.  For address
  376.                fields, it  is  recommended  that  such  folding  occur
  377.  
  378.  
  379.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 5555 ----                      RRRRFFFFCCCC ####888822222222
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  392.  
  393.  
  394.                between addresses, after the separating comma.
  395.  
  396.      _3._1._2.  _S_t_r_u_c_t_u_r_e _o_f _H_e_a_d_e_r _F_i_e_l_d_s
  397.  
  398.         Once a field has been unfolded, it may be viewed as being com-
  399.         posed of a field-name followed by a colon (":"), followed by a
  400.         field-body, and  terminated  by  a  carriage-return/line-feed.
  401.         The  field-name must be composed of printable ASCII characters
  402.         (i.e., characters that  have  values  between  33.  and  126.,
  403.         decimal, except colon).  The field-body may be composed of any
  404.         ASCII characters, except CR or LF.  (While CR and/or LF may be
  405.         present  in the actual text, they are removed by the action of
  406.         unfolding the field.)
  407.  
  408.         Certain field-bodies of headers may be  interpreted  according
  409.         to  an  internal  syntax  that some systems may wish to parse.
  410.         These  fields  are  called  "structured   fields".    Examples
  411.         include  fields containing dates and addresses.  Other fields,
  412.         such as "Subject"  and  "Comments",  are  regarded  simply  as
  413.         strings of text.
  414.  
  415.         Note:  Any field which has a field-body  that  is  defined  as
  416.                other  than  simply <text> is to be treated as a struc-
  417.                tured field.
  418.  
  419.                Field-names, unstructured field bodies  and  structured
  420.                field bodies each are scanned by their own, independent
  421.                "lexical" analyzers.
  422.  
  423.      _3._1._3.  _U_n_s_t_r_u_c_t_u_r_e_d _F_i_e_l_d _B_o_d_i_e_s
  424.  
  425.         For some fields, such as "Subject" and "Comments",  no  struc-
  426.         turing  is assumed, and they are treated simply as <text>s, as
  427.         in the message body.  Rules of folding apply to these  fields,
  428.         so  that  such  field  bodies  which occupy several lines must
  429.         therefore have the second and successive lines indented by  at
  430.         least one LWSP-char.
  431.  
  432.      _3._1._4.  _S_t_r_u_c_t_u_r_e_d _F_i_e_l_d _B_o_d_i_e_s
  433.  
  434.         To aid in the creation and reading of structured  fields,  the
  435.         free  insertion   of linear-white-space (which permits folding
  436.         by inclusion of CRLFs)  is  allowed  between  lexical  tokens.
  437.         Rather  than  obscuring  the  syntax  specifications for these
  438.         structured fields with explicit syntax for this  linear-white-
  439.         space, the existence of another "lexical" analyzer is assumed.
  440.         This analyzer does not apply  for  unstructured  field  bodies
  441.         that  are  simply  strings  of  text, as described above.  The
  442.         analyzer provides  an  interpretation  of  the  unfolded  text
  443.  
  444.  
  445.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 6666 ----                      RRRRFFFFCCCC ####888822222222
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  458.  
  459.  
  460.         composing  the body of the field as a sequence of lexical sym-
  461.         bols.
  462.  
  463.         These symbols are:
  464.  
  465.                      -  individual special characters
  466.                      -  quoted-strings
  467.                      -  domain-literals
  468.                      -  comments
  469.                      -  atoms
  470.  
  471.         The first four of these symbols  are  self-delimiting.   Atoms
  472.         are not; they are delimited by the self-delimiting symbols and
  473.         by  linear-white-space.   For  the  purposes  of  regenerating
  474.         sequences  of  atoms  and quoted-strings, exactly one SPACE is
  475.         assumed to exist, and should be used, between them.  (Also, in
  476.         the "Clarifications" section on "White Space", below, note the
  477.         rules about treatment of multiple contiguous LWSP-chars.)
  478.  
  479.         So, for example, the folded body of an address field
  480.  
  481.             ":sysmail"@  Some-Group. Some-Org,
  482.             Muhammed.(I am  the greatest) Ali @(the)Vegas.WBA
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 7777 ----                      RRRRFFFFCCCC ####888822222222
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  522.  
  523.  
  524.         is analyzed into the following lexical symbols and types:
  525.  
  526.                     :sysmail              quoted string
  527.                     @                     special
  528.                     Some-Group            atom
  529.                     .                     special
  530.                     Some-Org              atom
  531.                     ,                     special
  532.                     Muhammed              atom
  533.                     .                     special
  534.                     (I am  the greatest)  comment
  535.                     Ali                   atom
  536.                     @                     atom
  537.                     (the)                 comment
  538.                     Vegas                 atom
  539.                     .                     special
  540.                     WBA                   atom
  541.  
  542.         The canonical representations for the data in these  addresses
  543.         are the following strings:
  544.  
  545.                         ":sysmail"@Some-Group.Some-Org
  546.  
  547.         and
  548.  
  549.                             Muhammed.Ali@Vegas.WBA
  550.  
  551.         Note:  For purposes of display, and when passing  such  struc-
  552.                tured information to other systems, such as mail proto-
  553.                col  services,  there  must  be  _n_o  linear-white-space
  554.                between  <word>s  that are separated by period (".") or
  555.                at-sign ("@") and exactly one SPACE between  all  other
  556.                <word>s.  Also, headers should be in a folded form.
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 8888 ----                      RRRRFFFFCCCC ####888822222222
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  586.  
  587.  
  588.      _3._2.  _H_e_a_d_e_r _F_i_e_l_d _D_e_f_i_n_i_t_i_o_n_s
  589.  
  590.           These rules show a field meta-syntax, without regard for the
  591.      particular  type  or internal syntax.  Their purpose is to permit
  592.      detection of fields; also, they present to  higher-level  parsers
  593.      an image of each field as fitting on one line.
  594.  
  595.      field       =  field-name ":" [ field-body ] CRLF
  596.  
  597.      field-name  =  1*<any CHAR, excluding CTLs, SPACE, and ":">
  598.  
  599.      field-body  =  field-body-contents
  600.                     [CRLF LWSP-char field-body]
  601.  
  602.      field-body-contents =
  603.                    <the ASCII characters making up the field-body, as
  604.                     defined in the following sections, and consisting
  605.                     of combinations of atom, quoted-string, and
  606.                     specials tokens, or else consisting of texts>
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- 9999 ----                      RRRRFFFFCCCC ####888822222222
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  650.  
  651.  
  652.      _3._3.  _L_e_x_i_c_a_l _T_o_k_e_n_s
  653.  
  654.           The following rules are used to define an underlying lexical
  655.      analyzer,  which  feeds  tokens to higher level parsers.  See the
  656.      ANSI references, in the Bibliography.
  657.  
  658.                                                  ; (  Octal, Decimal.)
  659.      CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)
  660.      ALPHA       =  <any ASCII alphabetic character>
  661.                                                  ; (101-132, 65.- 90.)
  662.                                                  ; (141-172, 97.-122.)
  663.      DIGIT       =  <any ASCII decimal digit>    ; ( 60- 71, 48.- 57.)
  664.      CTL         =  <any ASCII control           ; (  0- 37,  0.- 31.)
  665.                      character and DEL>          ; (    177,     127.)
  666.      CR          =  <ASCII CR, carriage return>  ; (     15,      13.)
  667.      LF          =  <ASCII LF, linefeed>         ; (     12,      10.)
  668.      SPACE       =  <ASCII SP, space>            ; (     40,      32.)
  669.      HTAB        =  <ASCII HT, horizontal-tab>   ; (     11,       9.)
  670.      <">         =  <ASCII quote mark>           ; (     42,      34.)
  671.      CRLF        =  CR LF
  672.  
  673.      LWSP-char   =  SPACE / HTAB                 ; semantics = SPACE
  674.  
  675.      linear-white-space =  1*([CRLF] LWSP-char)  ; semantics = SPACE
  676.                                                  ; CRLF => folding
  677.  
  678.      specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
  679.                  /  "," / ";" / ":" / "\" / <">  ;  string, to use
  680.                  /  "." / "[" / "]"              ;  within a word.
  681.  
  682.      delimiters  =  specials / linear-white-space / comment
  683.  
  684.      text        =  <any CHAR, including bare    ; => atoms, specials,
  685.                      CR & bare LF, but NOT       ;  comments and
  686.                      including CRLF>             ;  quoted-strings are
  687.                                                  ;  NOT recognized.
  688.  
  689.      atom        =  1*<any CHAR except specials, SPACE and CTLs>
  690.  
  691.      quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
  692.                                                  ;   quoted chars.
  693.  
  694.      qtext       =  <any CHAR excepting <">,     ; => may be folded
  695.                      "\" & CR, and including
  696.                      linear-white-space>
  697.  
  698.      domain-literal =  "[" *(dtext / quoted-pair) "]"
  699.  
  700.  
  701.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11110000 ----                      RRRRFFFFCCCC ####888822222222
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  714.  
  715.  
  716.      dtext       =  <any CHAR excluding "[",     ; => may be folded
  717.                      "]", "\" & CR, & including
  718.                      linear-white-space>
  719.  
  720.      comment     =  "(" *(ctext / quoted-pair / comment) ")"
  721.  
  722.      ctext       =  <any CHAR excluding "(",     ; => may be folded
  723.                      ")", "\" & CR, & including
  724.                      linear-white-space>
  725.  
  726.      quoted-pair =  "\" CHAR                     ; may quote any char
  727.  
  728.      phrase      =  1*word                       ; Sequence of words
  729.  
  730.      word        =  atom / quoted-string
  731.  
  732.  
  733.      _3._4.  _C_l_a_r_i_f_i_c_a_t_i_o_n_s
  734.  
  735.      _3._4._1.  _Q_u_o_t_i_n_g
  736.  
  737.         Some characters are reserved for special interpretation,  such
  738.         as  delimiting lexical tokens.  To permit use of these charac-
  739.         ters as uninterpreted data, a quoting mechanism  is  provided.
  740.         To quote a character, precede it with a backslash ("\").
  741.  
  742.         This mechanism is not fully general.  Characters may be quoted
  743.         only  within  a subset of the lexical constructs.  In particu-
  744.         lar, quoting is limited to use within:
  745.  
  746.                              -  quoted-string
  747.                              -  domain-literal
  748.                              -  comment
  749.  
  750.         Within these constructs, quoting is _r_e_q_u_i_r_e_d for  CR  and  "\"
  751.         and for the character(s) that delimit the token (e.g., "(" and
  752.         ")" for a comment).  However, quoting  is  _p_e_r_m_i_t_t_e_d  for  any
  753.         character.
  754.  
  755.         Note:  In particular, quoting is _n_o_t permitted  within  atoms.
  756.                For  example  when  the local-part of an addr-spec must
  757.                contain a special character, a quoted  string  must  be
  758.                used.  Therefore, a specification such as:
  759.  
  760.                             Full\ Name@Domain
  761.  
  762.  
  763.  
  764.  
  765.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11111111 ----                      RRRRFFFFCCCC ####888822222222
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  778.  
  779.  
  780.                is not legal and must be specified as:
  781.  
  782.                             "Full Name"@Domain
  783.  
  784.  
  785.      _3._4._2.  _W_h_i_t_e _S_p_a_c_e
  786.  
  787.         Note:  In structured field bodies, multiple linear space ASCII
  788.                characters  (namely  HTABs  and  SPACEs) are treated as
  789.                single spaces and may freely surround any  symbol.   In
  790.                all header fields, the only place in which at least one
  791.                LWSP-char is _r_e_q_u_i_r_e_d is at the beginning of  continua-
  792.                tion lines in a folded field.
  793.  
  794.         When passing text to processes  that  do  not  interpret  text
  795.         according to this standard (e.g., mail protocol servers), then
  796.         _n_o linear-white-space characters should occur between a period
  797.         (".") or at-sign ("@") and a <word>.  Exactly _o_n_e SPACE should
  798.         be used in place of arbitrary linear-white-space  and  comment
  799.         sequences.
  800.  
  801.         Note:  Within systems conforming to this standard, wherever  a
  802.                member of the list of delimiters is allowed, LWSP-chars
  803.                may also occur before and/or after it.
  804.  
  805.         Writers of  mail-sending  (i.e.,  header-generating)  programs
  806.         should realize that there is no network-wide definition of the
  807.         effect of ASCII HT (horizontal-tab) characters on the  appear-
  808.         ance  of  text  at another network host; therefore, the use of
  809.         tabs in message headers, though permitted, is discouraged.
  810.  
  811.      _3._4._3.  _C_o_m_m_e_n_t_s
  812.  
  813.         A comment is a set of ASCII characters, which is  enclosed  in
  814.         matching  parentheses  and which is not within a quoted-string
  815.         The comment construct permits message originators to add  text
  816.         which  will  be  useful  for  human readers, but which will be
  817.         ignored by the formal semantics.  Comments should be  retained
  818.         while  the  message  is subject to interpretation according to
  819.         this standard.  However, comments  must  _n_o_t  be  included  in
  820.         other  cases,  such  as  during  protocol  exchanges with mail
  821.         servers.
  822.  
  823.         Comments nest, so that if an unquoted left parenthesis  occurs
  824.         in  a  comment  string,  there  must  also be a matching right
  825.         parenthesis.  When a comment acts as the delimiter  between  a
  826.         sequence of two lexical symbols, such as two atoms, it is lex-
  827.         ically equivalent with a single SPACE,  for  the  purposes  of
  828.         regenerating  the  sequence, such as when passing the sequence
  829.  
  830.  
  831.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11112222 ----                      RRRRFFFFCCCC ####888822222222
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  844.  
  845.  
  846.         onto a mail protocol server.  Comments are  detected  as  such
  847.         only within field-bodies of structured fields.
  848.  
  849.         If a comment is to be "folded" onto multiple lines,  then  the
  850.         syntax  for  folding  must  be  adhered to.  (See the "Lexical
  851.         Analysis of Messages" section on "Folding Long Header  Fields"
  852.         above,  and  the  section on "Case Independence" below.)  Note
  853.         that  the  official  semantics  therefore  do  not  "see"  any
  854.         unquoted CRLFs that are in comments, although particular pars-
  855.         ing programs may wish to note their presence.  For these  pro-
  856.         grams,  it would be reasonable to interpret a "CRLF LWSP-char"
  857.         as being a CRLF that is part of the comment; i.e., the CRLF is
  858.         kept  and  the  LWSP-char is discarded.  Quoted CRLFs (i.e., a
  859.         backslash followed by a CR followed by a  LF)  still  must  be
  860.         followed by at least one LWSP-char.
  861.  
  862.      _3._4._4.  _D_e_l_i_m_i_t_i_n_g _a_n_d _Q_u_o_t_i_n_g _C_h_a_r_a_c_t_e_r_s
  863.  
  864.         The quote character (backslash) and  characters  that  delimit
  865.         syntactic  units  are not, generally, to be taken as data that
  866.         are part of the delimited or quoted unit(s).   In  particular,
  867.         the   quotation-marks   that   define   a  quoted-string,  the
  868.         parentheses that define  a  comment  and  the  backslash  that
  869.         quotes  a  following  character  are  _n_o_t  part of the quoted-
  870.         string, comment or quoted character.  A quotation-mark that is
  871.         to  be  part  of  a quoted-string, a parenthesis that is to be
  872.         part of a comment and a backslash that is to be part of either
  873.         must  each be preceded by the quote-character backslash ("\").
  874.         Note that the syntax allows any character to be quoted  within
  875.         a  quoted-string  or  comment; however only certain characters
  876.         _m_u_s_t be quoted to be included as data.  These  characters  are
  877.         the  ones that are not part of the alternate text group (i.e.,
  878.         ctext or qtext).
  879.  
  880.         The one exception to this rule  is  that  a  single  SPACE  is
  881.         assumed  to  exist  between  contiguous words in a phrase, and
  882.         this interpretation is independent of  the  actual  number  of
  883.         LWSP-chars  that  the  creator  places  between the words.  To
  884.         include more than one SPACE, the creator must make  the  LWSP-
  885.         chars be part of a quoted-string.
  886.  
  887.         Quotation marks that delimit a quoted string  and  backslashes
  888.         that  quote  the  following character should _n_o_t accompany the
  889.         quoted-string when the string is passed to processes  that  do
  890.         not interpret data according to this specification (e.g., mail
  891.         protocol servers).
  892.  
  893.  
  894.  
  895.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11113333 ----                      RRRRFFFFCCCC ####888822222222
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  908.  
  909.  
  910.      _3._4._5.  _Q_u_o_t_e_d-_s_t_r_i_n_g_s
  911.  
  912.         Where permitted (i.e., in words in structured fields)  quoted-
  913.         strings  are  treated  as a single symbol.  That is, a quoted-
  914.         string is equivalent to an atom, syntactically.  If a  quoted-
  915.         string  is to be "folded" onto multiple lines, then the syntax
  916.         for folding must be adhered to.  (See the "Lexical Analysis of
  917.         Messages"  section  on "Folding Long Header Fields" above, and
  918.         the section on "Case  Independence"  below.)   Therefore,  the
  919.         official  semantics  do  not  "see" any bare CRLFs that are in
  920.         quoted-strings; however particular parsing programs  may  wish
  921.         to  note  their presence.  For such programs, it would be rea-
  922.         sonable to interpret a "CRLF LWSP-char" as being a CRLF  which
  923.         is  part  of the quoted-string; i.e., the CRLF is kept and the
  924.         LWSP-char is discarded.  Quoted CRLFs (i.e., a backslash  fol-
  925.         lowed  by  a CR followed by a LF) are also subject to rules of
  926.         folding, but the presence of the quoting character (backslash)
  927.         explicitly  indicates  that  the  CRLF  is  data to the quoted
  928.         string.  Stripping off the first following LWSP-char  is  also
  929.         appropriate when parsing quoted CRLFs.
  930.  
  931.      _3._4._6.  _B_r_a_c_k_e_t_i_n_g _C_h_a_r_a_c_t_e_r_s
  932.  
  933.         There is one type of bracket which must occur in matched pairs
  934.         and may have pairs nested within each other:
  935.  
  936.             o   Parentheses ("(" and ")") are used  to  indicate  com-
  937.                 ments.
  938.  
  939.         There are three types of brackets which must occur in  matched
  940.         pairs, and which may _n_o_t be nested:
  941.  
  942.             o   Colon/semi-colon (":" and ";") are   used  in  address
  943.                 specifications  to  indicate that the included list of
  944.                 addresses are to be treated as a group.
  945.  
  946.             o   Angle brackets ("<" and ">")  are  generally  used  to
  947.                 indicate  the  presence of a one machine-usable refer-
  948.                 ence (e.g., delimiting mailboxes), possibly  including
  949.                 source-routing to the machine.
  950.  
  951.             o   Square brackets ("[" and "]") are used to indicate the
  952.                 presence  of  a  domain-literal, which the appropriate
  953.                 name-domain  is  to  use  directly,  bypassing  normal
  954.                 name-resolution mechanisms.
  955.  
  956.  
  957.  
  958.  
  959.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11114444 ----                      RRRRFFFFCCCC ####888822222222
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  972.  
  973.  
  974.      _3._4._7.  _C_a_s_e _I_n_d_e_p_e_n_d_e_n_c_e
  975.  
  976.         Except as noted, alphabetic strings may be represented in  any
  977.         combination of upper and lower case.  The only syntactic units
  978.         which requires preservation of case information are:
  979.  
  980.                     -  text
  981.                     -  qtext
  982.                     -  dtext
  983.                     -  ctext
  984.                     -  quoted-pair
  985.                     -  local-part, except "Postmaster"
  986.  
  987.         When matching any other syntactic unit, case is to be ignored.
  988.         For  example, the field-names "From", "FROM", "from", and even
  989.         "FroM" are semantically equal and should all be treated ident-
  990.         ically.
  991.  
  992.         When generating these units, any mix of upper and  lower  case
  993.         alphabetic  characters  may  be  used.  The case shown in this
  994.         specification is suggested for message-creating processes.
  995.  
  996.         Note:  The reserved local-part address unit, "Postmaster",  is
  997.                an  exception.   When  the  value "Postmaster" is being
  998.                interpreted, it must be  accepted  in  any  mixture  of
  999.                case, including "POSTMASTER", and "postmaster".
  1000.  
  1001.      _3._4._8.  _F_o_l_d_i_n_g _L_o_n_g _H_e_a_d_e_r _F_i_e_l_d_s
  1002.  
  1003.         Each header field may be represented on exactly one line  con-
  1004.         sisting  of the name of the field and its body, and terminated
  1005.         by a CRLF; this is what the parser sees.  For readability, the
  1006.         field-body  portion of long header fields may be "folded" onto
  1007.         multiple lines of the actual field.  "Long" is commonly inter-
  1008.         preted  to  mean greater than 65 or 72 characters.  The former
  1009.         length serves as a limit, when the message is to be viewed  on
  1010.         most  simple terminals which use simple display software; how-
  1011.         ever, the limit is not imposed by this standard.
  1012.  
  1013.         Note:  Some display software often can selectively fold lines,
  1014.                to  suit  the display terminal.  In such cases, sender-
  1015.                provided  folding  can  interfere  with   the   display
  1016.                software.
  1017.  
  1018.      _3._4._9.  _B_a_c_k_s_p_a_c_e _C_h_a_r_a_c_t_e_r_s
  1019.  
  1020.         ASCII BS characters (Backspace, decimal 8) may be included  in
  1021.         texts and quoted-strings to effect overstriking.  However, any
  1022.         use of backspaces which effects an overstrike to the  left  of
  1023.  
  1024.  
  1025.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11115555 ----                      RRRRFFFFCCCC ####888822222222
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1038.  
  1039.  
  1040.         the beginning of the text or quoted-string is prohibited.
  1041.  
  1042.      _3._4._1_0.  _N_e_t_w_o_r_k-_s_p_e_c_i_f_i_c _T_r_a_n_s_f_o_r_m_a_t_i_o_n_s
  1043.  
  1044.         During transmission through heterogeneous networks, it may  be
  1045.         necessary  to  force data to conform to a network's local con-
  1046.         ventions.  For example, it may be required that a CR  be  fol-
  1047.         lowed  either by LF, making a CRLF, or by <null>, if the CR is
  1048.         to stand alone).  Such transformations are reversed, when  the
  1049.         message exits that network.
  1050.  
  1051.         When  crossing  network  boundaries,  the  message  should  be
  1052.         treated  as  passing  through  two modules.  It will enter the
  1053.         first module containing whatever network-specific  transforma-
  1054.         tions  that  were  necessary  to  permit migration through the
  1055.         "current" network.  It then passes through the modules:
  1056.  
  1057.             o   Transformation Reversal
  1058.  
  1059.                 The "current" network's idiosyncracies are removed and
  1060.                 the  message  is returned to the canonical form speci-
  1061.                 fied in this standard.
  1062.  
  1063.             o   Transformation
  1064.  
  1065.                 The "next" network's local idiosyncracies are  imposed
  1066.                 on the message.
  1067.  
  1068.                                 ------------------
  1069.                     >From   ==>  | Remove Net-A   |
  1070.                     Net-A       | idiosyncracies |
  1071.                                 ------------------
  1072.                                        ||
  1073.                                        \/
  1074.                                   Conformance
  1075.                                   with standard
  1076.                                        ||
  1077.                                        \/
  1078.                                 ------------------
  1079.                                 | Impose Net-B   |  ==>  To
  1080.                                 | idiosyncracies |       Net-B
  1081.                                 ------------------
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11116666 ----                      RRRRFFFFCCCC ####888822222222
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1102.  
  1103.  
  1104.      _4.  _M_E_S_S_A_G_E _S_P_E_C_I_F_I_C_A_T_I_O_N
  1105.  
  1106.      _4._1.  _S_y_n_t_a_x
  1107.  
  1108.      Note:  Due to an artifact of the notational conventions, the syn-
  1109.             tax  indicates that, when present, some fields, must be in
  1110.             a particular order.  Header fields  are  _n_o_t  required  to
  1111.             occur  in  any  particular  order, except that the message
  1112.             body must occur _a_f_t_e_r  the  headers.   It  is  recommended
  1113.             that,  if  present,  headers be sent in the order "Return-
  1114.             Path", "Received", "Date",  "From",  "Subject",  "Sender",
  1115.             "To", "cc", etc.
  1116.  
  1117.             This specification permits multiple  occurrences  of  most
  1118.             fields.   Except  as  noted,  their  interpretation is not
  1119.             specified here, and their use is discouraged.
  1120.  
  1121.           The following syntax for the bodies of various fields should
  1122.      be  thought  of  as  describing  each field body as a single long
  1123.      string (or line).  The "Lexical Analysis of Message"  section  on
  1124.      "Long  Header Fields", above, indicates how such long strings can
  1125.      be represented on more than one line in  the  actual  transmitted
  1126.      message.
  1127.  
  1128.      message     =  fields *( CRLF *text )       ; Everything after
  1129.                                                  ;  first null line
  1130.                                                  ;  is message body
  1131.  
  1132.      fields      =    dates                      ; Creation time,
  1133.                       source                     ;  author id & one
  1134.                     1*destination                ;  address required
  1135.                      *optional-field             ;  others optional
  1136.  
  1137.      source      = [  trace ]                    ; net traversals
  1138.                       originator                 ; original mail
  1139.                    [  resent ]                   ; forwarded
  1140.  
  1141.      trace       =    return                     ; path to sender
  1142.                     1*received                   ; receipt tags
  1143.  
  1144.      return      =  "Return-path" ":" route-addr ; return address
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11117777 ----                      RRRRFFFFCCCC ####888822222222
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1166.  
  1167.  
  1168.      received    =  "Received"    ":"            ; one per relay
  1169.                        ["from" domain]           ; sending host
  1170.                        ["by"   domain]           ; receiving host
  1171.                        ["via"  atom]             ; physical path
  1172.                       *("with" atom)             ; link/mail protocol
  1173.                        ["id"   msg-id]           ; receiver msg id
  1174.                        ["for"  addr-spec]        ; initial form
  1175.                         ";"    date-time         ; time received
  1176.  
  1177.      originator  =   authentic                   ; authenticated addr
  1178.                    [ "Reply-To"   ":" 1#address] )
  1179.  
  1180.      authentic   =   "From"       ":"   mailbox  ; Single author
  1181.                  / ( "Sender"     ":"   mailbox  ; Actual submittor
  1182.                      "From"       ":" 1#mailbox) ; Multiple authors
  1183.                                                  ;  or not sender
  1184.  
  1185.      resent      =   resent-authentic
  1186.                    [ "Resent-Reply-To"  ":" 1#address] )
  1187.  
  1188.      resent-authentic =
  1189.                  =   "Resent-From"      ":"   mailbox
  1190.                  / ( "Resent-Sender"    ":"   mailbox
  1191.                      "Resent-From"      ":" 1#mailbox  )
  1192.  
  1193.      dates       =   orig-date                   ; Original
  1194.                    [ resent-date ]               ; Forwarded
  1195.  
  1196.      orig-date   =  "Date"        ":"   date-time
  1197.  
  1198.      resent-date =  "Resent-Date" ":"   date-time
  1199.  
  1200.      destination =  "To"          ":" 1#address  ; Primary
  1201.                  /  "Resent-To"   ":" 1#address
  1202.                  /  "cc"          ":" 1#address  ; Secondary
  1203.                  /  "Resent-cc"   ":" 1#address
  1204.                  /  "bcc"         ":"  #address  ; Blind carbon
  1205.                  /  "Resent-bcc"  ":"  #address
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11118888 ----                      RRRRFFFFCCCC ####888822222222
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1230.  
  1231.  
  1232.      optional-field =
  1233.                  /  "Message-ID"        ":"   msg-id
  1234.                  /  "Resent-Message-ID" ":"   msg-id
  1235.                  /  "In-Reply-To"       ":"  *(phrase / msg-id)
  1236.                  /  "References"        ":"  *(phrase / msg-id)
  1237.                  /  "Keywords"          ":"  #phrase
  1238.                  /  "Subject"           ":"  *text
  1239.                  /  "Comments"          ":"  *text
  1240.                  /  "Encrypted"         ":" 1#2word
  1241.                  /  extension-field              ; To be defined
  1242.                  /  user-defined-field           ; May be pre-empted
  1243.  
  1244.      msg-id      =  "<" addr-spec ">"            ; Unique message id
  1245.      extension-field =
  1246.                    <Any field which is defined in a document
  1247.                     published as a formal extension to this
  1248.                     specification; none will have names beginning
  1249.                     with the string "X-">
  1250.  
  1251.      user-defined-field =
  1252.                    <Any field which has not been defined
  1253.                     in this specification or published as an
  1254.                     extension to this specification; names for
  1255.                     such fields must be unique and may be
  1256.                     pre-empted by published extensions>
  1257.  
  1258.      _4._2.  _F_o_r_w_a_r_d_i_n_g
  1259.  
  1260.           Some systems permit mail recipients to  forward  a  message,
  1261.      retaining  the original headers, by adding some new fields.  This
  1262.      standard supports such a service, through the "Resent-" prefix to
  1263.      field names.
  1264.  
  1265.           Whenever the string "Resent-" begins a field name, the field
  1266.      has  the  same  semantics as a field whose name does not have the
  1267.      prefix.  However, the message is assumed to have  been  forwarded
  1268.      by  an original recipient who attached the "Resent-" field.  This
  1269.      new field is treated as being more recent  than  the  equivalent,
  1270.      original  field.   For  example, the "Resent-From", indicates the
  1271.      person that forwarded the message, whereas the "From" field indi-
  1272.      cates the original author.
  1273.  
  1274.           Use of such precedence  information  depends  upon  partici-
  1275.      pants'  communication needs.  For example, this standard does not
  1276.      dictate when a "Resent-From:" address should receive replies,  in
  1277.      lieu of sending them to the "From:" address.
  1278.  
  1279.      Note:  In general, the "Resent-" fields should be treated as con-
  1280.             taining  a  set  of information that is independent of the
  1281.  
  1282.  
  1283.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 11119999 ----                      RRRRFFFFCCCC ####888822222222
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1296.  
  1297.  
  1298.             set of original fields.  Information for  one  set  should
  1299.             not  automatically be taken from the other.  The interpre-
  1300.             tation of multiple "Resent-" fields, of the same type,  is
  1301.             undefined.
  1302.  
  1303.           In the remainder of this specification, occurrence of  legal
  1304.      "Resent-"  fields  are treated identically with the occurrence of
  1305.      fields whose names do not contain this prefix.
  1306.  
  1307.      _4._3.  _T_r_a_c_e _F_i_e_l_d_s
  1308.  
  1309.           Trace information is used to provide an audit trail of  mes-
  1310.      sage  handling.   In  addition,  it indicates a route back to the
  1311.      sender of the message.
  1312.  
  1313.           The list of known "via" and  "with"  values  are  registered
  1314.      with  the  Network  Information  Center, SRI International, Menlo
  1315.      Park, California.
  1316.  
  1317.      _4._3._1.  _R_e_t_u_r_n-_P_a_t_h
  1318.  
  1319.         This field  is  added  by  the  final  transport  system  that
  1320.         delivers  the message to its recipient.  The field is intended
  1321.         to contain definitive information about the address and  route
  1322.         back to the message's originator.
  1323.  
  1324.         Note:  The "Reply-To" field is added  by  the  originator  and
  1325.                serves  to  direct  replies,  whereas the "Return-Path"
  1326.                field is used to identify a path back to  the  origina-
  1327.                tor.
  1328.  
  1329.         While the syntax  indicates  that  a  route  specification  is
  1330.         optional,  every attempt should be made to provide that infor-
  1331.         mation in this field.
  1332.  
  1333.      _4._3._2.  _R_e_c_e_i_v_e_d
  1334.  
  1335.         A copy of this field is added by each transport  service  that
  1336.         relays the message.  The information in the field can be quite
  1337.         useful for tracing transport problems.
  1338.  
  1339.         The names of the sending  and  receiving  hosts  and  time-of-
  1340.         receipt may be specified.  The "via" parameter may be used, to
  1341.         indicate what physical mechanism the message  was  sent  over,
  1342.         such  as  Arpanet or Phonenet, and the "with" parameter may be
  1343.         used to indicate the mail-,  or  connection-,  level  protocol
  1344.         that  was  used, such as the SMTP mail protocol, or X.25 tran-
  1345.         sport protocol.
  1346.  
  1347.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22220000 ----                      RRRRFFFFCCCC ####888822222222
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1360.  
  1361.  
  1362.         Note:  Several "with" parameters may  be  included,  to  fully
  1363.                specify the set of protocols that were used.
  1364.  
  1365.         Some transport services queue mail; the internal message iden-
  1366.         tifier that is assigned to the message may be noted, using the
  1367.         "id" parameter.  When the  sending  host  uses  a  destination
  1368.         address specification that the receiving host reinterprets, by
  1369.         expansion or transformation, the receiving host  may  wish  to
  1370.         record  the original specification, using the "for" parameter.
  1371.         For example, when a copy of mail is sent to the  member  of  a
  1372.         distribution  list,  this  parameter may be used to record the
  1373.         original address that was used to specify the list.
  1374.  
  1375.      _4._4.  _O_r_i_g_i_n_a_t_o_r _F_i_e_l_d_s
  1376.  
  1377.           The standard allows only a subset of the combinations possi-
  1378.      ble  with the From, Sender, Reply-To, Resent-From, Resent-Sender,
  1379.      and Resent-Reply-To fields.  The limitation is intentional.
  1380.  
  1381.      _4._4._1.  _F_r_o_m / _R_e_s_e_n_t-_F_r_o_m
  1382.  
  1383.         This field contains the identity of the person(s)  who  wished
  1384.         this  message to be sent.  The message-creation process should
  1385.         default this field  to  be  a  single,  authenticated  machine
  1386.         address,  indicating  the  _a_g_e_n_t  (person,  system or process)
  1387.         entering the message.  If this is not done, the "Sender" field
  1388.         _m_u_s_t  be  present.  If the "From" field _i_s defaulted this way,
  1389.         the "Sender" field is  optional  and  is  redundant  with  the
  1390.         "From"  field.   In  all  cases, addresses in the "From" field
  1391.         must be machine-usable (addr-specs) and may not contain  named
  1392.         lists (groups).
  1393.  
  1394.      _4._4._2.  _S_e_n_d_e_r / _R_e_s_e_n_t-_S_e_n_d_e_r
  1395.  
  1396.         This field contains the authenticated identity  of  the  _a_g_e_n_t
  1397.         (person,  system  or  process)  that sends the message.  It is
  1398.         intended for use when the sender is not the author of the mes-
  1399.         sage,  or  to  indicate  who among a group of authors actually
  1400.         sent the message.  If the contents of the "Sender" field would
  1401.         be  completely  redundant  with  the  "From"  field,  then the
  1402.         "Sender" field need not be present and its use is  discouraged
  1403.         (though  still legal).  In particular, the "Sender" field _m_u_s_t
  1404.         be present if it is _n_o_t the same as the "From" Field.
  1405.  
  1406.         The Sender mailbox  specification  includes  a  word  sequence
  1407.         which  must correspond to a specific agent (i.e., a human user
  1408.         or a computer program) rather than a standard  address.   This
  1409.         indicates  the  expectation  that  the field will identify the
  1410.         single _a_g_e_n_t (person,  system,  or  process)  responsible  for
  1411.  
  1412.  
  1413.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22221111 ----                      RRRRFFFFCCCC ####888822222222
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1426.  
  1427.  
  1428.         sending  the mail and not simply include the name of a mailbox
  1429.         from which the mail was sent.  For example in the  case  of  a
  1430.         shared login name, the name, by itself, would not be adequate.
  1431.         The local-part address unit, which refers to  this  agent,  is
  1432.         expected to be a computer system term, and not (for example) a
  1433.         generalized person reference which can  be  used  outside  the
  1434.         network text message context.
  1435.  
  1436.         Since the critical function served by the  "Sender"  field  is
  1437.         identification  of  the agent responsible for sending mail and
  1438.         since computer programs cannot be held accountable  for  their
  1439.         behavior, it is strongly recommended that when a computer pro-
  1440.         gram generates a message, the _h_u_m_a_n  who  is  responsible  for
  1441.         that program be referenced as part of the "Sender" field mail-
  1442.         box specification.
  1443.  
  1444.      _4._4._3.  _R_e_p_l_y-_T_o / _R_e_s_e_n_t-_R_e_p_l_y-_T_o
  1445.  
  1446.         This field provides a general  mechanism  for  indicating  any
  1447.         mailbox(es)  to which responses are to be sent.  Three typical
  1448.         uses for this feature can  be  distinguished.   In  the  first
  1449.         case,  the  author(s) may not have regular machine-based mail-
  1450.         boxes and therefore wish(es) to indicate an alternate  machine
  1451.         address.   In  the  second case, an author may wish additional
  1452.         persons to be made aware of, or responsible for,  replies.   A
  1453.         somewhat  different  use  may be of some help to "text message
  1454.         teleconferencing" groups equipped with automatic  distribution
  1455.         services:   include the address of that service in the "Reply-
  1456.         To" field of all messages  submitted  to  the  teleconference;
  1457.         then  participants  can  "reply"  to conference submissions to
  1458.         guarantee the correct distribution of any submission of  their
  1459.         own.
  1460.  
  1461.         Note:  The "Return-Path" field is added by the mail  transport
  1462.                service,  at the time of final deliver.  It is intended
  1463.                to identify a path back to the orginator  of  the  mes-
  1464.                sage.   The  "Reply-To"  field  is added by the message
  1465.                originator and is intended to direct replies.
  1466.  
  1467.      _4._4._4.  _A_u_t_o_m_a_t_i_c _U_s_e _o_f _F_r_o_m / _S_e_n_d_e_r / _R_e_p_l_y-_T_o
  1468.  
  1469.         For systems which automatically  generate  address  lists  for
  1470.         replies to messages, the following recommendations are made:
  1471.  
  1472.             o   The "Sender" field mailbox should be sent  notices  of
  1473.                 any  problems in transport or delivery of the original
  1474.                 messages.  If there is no  "Sender"  field,  then  the
  1475.                 "From" field mailbox should be used.
  1476.  
  1477.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22222222 ----                      RRRRFFFFCCCC ####888822222222
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1490.  
  1491.  
  1492.             o   The  "Sender"  field  mailbox  should  _n_e_v_e_r  be  used
  1493.                 automatically, in a recipient's reply message.
  1494.  
  1495.             o   If the "Reply-To" field exists, then the reply  should
  1496.                 go to the addresses indicated in that field and not to
  1497.                 the address(es) indicated in the "From" field.
  1498.  
  1499.             o   If there is a "From" field, but no  "Reply-To"  field,
  1500.                 the  reply should be sent to the address(es) indicated
  1501.                 in the "From" field.
  1502.  
  1503.         Sometimes, a recipient may actually wish to  communicate  with
  1504.         the  person  that  initiated  the  message  transfer.  In such
  1505.         cases, it is reasonable to use the "Sender" address.
  1506.  
  1507.         This recommendation is intended  only  for  automated  use  of
  1508.         originator-fields  and is not intended to suggest that replies
  1509.         may not also be sent to other recipients of messages.   It  is
  1510.         up  to  the  respective  mail-handling programs to decide what
  1511.         additional facilities will be provided.
  1512.  
  1513.         Examples are provided in Appendix A.
  1514.  
  1515.      _4._5.  _R_e_c_e_i_v_e_r _F_i_e_l_d_s
  1516.  
  1517.      _4._5._1.  _T_o / _R_e_s_e_n_t-_T_o
  1518.  
  1519.         This field contains the identity of the primary recipients  of
  1520.         the message.
  1521.  
  1522.      _4._5._2.  _c_c / _R_e_s_e_n_t-_c_c
  1523.  
  1524.         This field contains the identity of  the  secondary  (informa-
  1525.         tional) recipients of the message.
  1526.  
  1527.      _4._5._3.  _B_c_c / _R_e_s_e_n_t-_B_c_c
  1528.  
  1529.         This field contains the identity of additional  recipients  of
  1530.         the  message.   The contents of this field are not included in
  1531.         copies of the message sent to the primary and secondary  reci-
  1532.         pients.   Some  systems  may choose to include the text of the
  1533.         "Bcc" field only in the author(s)'s  copy,  while  others  may
  1534.         also include it in the text sent to all those indicated in the
  1535.         "Bcc" list.
  1536.  
  1537.      _4._6.  _R_e_f_e_r_e_n_c_e _F_i_e_l_d_s
  1538.  
  1539.  
  1540.  
  1541.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22223333 ----                      RRRRFFFFCCCC ####888822222222
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1554.  
  1555.  
  1556.      _4._6._1.  _M_e_s_s_a_g_e-_I_D / _R_e_s_e_n_t-_M_e_s_s_a_g_e-_I_D
  1557.  
  1558.              This field contains a unique identifier  (the  local-part
  1559.         address  unit)  which  refers to _t_h_i_s version of _t_h_i_s message.
  1560.         The uniqueness of the message identifier is guaranteed by  the
  1561.         host  which  generates  it.  This identifier is intended to be
  1562.         machine readable and not necessarily meaningful to humans.   A
  1563.         message  identifier pertains to exactly one instantiation of a
  1564.         particular message; subsequent revisions to the message should
  1565.         each receive new message identifiers.
  1566.  
  1567.      _4._6._2.  _I_n-_R_e_p_l_y-_T_o
  1568.  
  1569.              The contents of this field identify  previous  correspon-
  1570.         dence  which this message answers.  Note that if message iden-
  1571.         tifiers are used in this  field,  they  must  use  the  msg-id
  1572.         specification format.
  1573.  
  1574.      _4._6._3.  _R_e_f_e_r_e_n_c_e_s
  1575.  
  1576.              The contents of this field identify other  correspondence
  1577.         which  this message references.  Note that if message identif-
  1578.         iers are used, they must use the msg-id specification format.
  1579.  
  1580.      _4._6._4.  _K_e_y_w_o_r_d_s
  1581.  
  1582.              This field contains keywords  or  phrases,  separated  by
  1583.         commas.
  1584.  
  1585.      _4._7.  _O_t_h_e_r _F_i_e_l_d_s
  1586.  
  1587.      _4._7._1.  _S_u_b_j_e_c_t
  1588.  
  1589.              This is intended to provide a summary,  or  indicate  the
  1590.         nature, of the message.
  1591.  
  1592.      _4._7._2.  _C_o_m_m_e_n_t_s
  1593.  
  1594.              Permits adding text comments  onto  the  message  without
  1595.         disturbing the contents of the message's body.
  1596.  
  1597.      _4._7._3.  _E_n_c_r_y_p_t_e_d
  1598.  
  1599.              Sometimes,  data  encryption  is  used  to  increase  the
  1600.         privacy  of  message  contents.   If the body of a message has
  1601.         been encrypted, to keep its contents private, the  "Encrypted"
  1602.         field  can be used to note the fact and to indicate the nature
  1603.         of the encryption.  The first <word> parameter  indicates  the
  1604.         software  used  to  encrypt the body, and the second, optional
  1605.  
  1606.  
  1607.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22224444 ----                      RRRRFFFFCCCC ####888822222222
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1620.  
  1621.  
  1622.         <word> is intended to  aid  the  recipient  in  selecting  the
  1623.         proper  decryption  key.   This  code word may be viewed as an
  1624.         index to a table of keys held by the recipient.
  1625.  
  1626.         Note:  Unfortunately, headers must contain envelope,  as  well
  1627.                as  contents,  information.  Consequently, it is neces-
  1628.                sary that they remain unencrypted, so that  mail  tran-
  1629.                sport   services   may   access   them.   Since  names,
  1630.                addresses, and "Subject"  field  contents  may  contain
  1631.                sensitive  information,  this  requirement limits total
  1632.                message privacy.
  1633.  
  1634.              Names of encryption software are registered with the Net-
  1635.         work  Information Center, SRI International, Menlo Park, Cali-
  1636.         fornia.
  1637.  
  1638.      _4._7._4.  _E_x_t_e_n_s_i_o_n-_f_i_e_l_d
  1639.  
  1640.              A limited number of common fields have  been  defined  in
  1641.         this  document.   As  network mail requirements dictate, addi-
  1642.         tional fields may be standardized.   To  provide  user-defined
  1643.         fields  with  a  measure  of  safety,  in name selection, such
  1644.         extension-fields will never have names  that  begin  with  the
  1645.         string "X-".
  1646.  
  1647.              Names of Extension-fields are registered with the Network
  1648.         Information Center, SRI International, Menlo Park, California.
  1649.  
  1650.      _4._7._5.  _U_s_e_r-_d_e_f_i_n_e_d-_f_i_e_l_d
  1651.  
  1652.              Individual users of network mail are free to  define  and
  1653.         use  additional  header  fields.   Such fields must have names
  1654.         which are not already used in the current specification or  in
  1655.         any definitions of extension-fields, and the overall syntax of
  1656.         these user-defined-fields must conform to this specification's
  1657.         rules   for   delimiting  and  folding  fields.   Due  to  the
  1658.         extension-field  publishing  process,  the  name  of  a  user-
  1659.         defined-field may be pre-empted
  1660.  
  1661.         Note:  The prefatory string "X-" will never  be  used  in  the
  1662.                names  of Extension-fields.  This provides user-defined
  1663.                fields with a protected set of names.
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22225555 ----                      RRRRFFFFCCCC ####888822222222
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1684.  
  1685.  
  1686.      _5.  _D_A_T_E _A_N_D _T_I_M_E _S_P_E_C_I_F_I_C_A_T_I_O_N
  1687.  
  1688.      _5._1.  _S_y_n_t_a_x
  1689.  
  1690.      date-time   =  [ day "," ] date time        ; dd mm yy
  1691.                                                  ;  hh:mm:ss zzz
  1692.  
  1693.      day         =  "Mon"  / "Tue" /  "Wed"  / "Thu"
  1694.                  /  "Fri"  / "Sat" /  "Sun"
  1695.  
  1696.      date        =  1*2DIGIT month 2DIGIT        ; day month year
  1697.                                                  ;  e.g. 20 Jun 82
  1698.  
  1699.      month       =  "Jan"  /  "Feb" /  "Mar"  /  "Apr"
  1700.                  /  "May"  /  "Jun" /  "Jul"  /  "Aug"
  1701.                  /  "Sep"  /  "Oct" /  "Nov"  /  "Dec"
  1702.  
  1703.      time        =  hour zone                    ; ANSI and Military
  1704.  
  1705.      hour        =  2DIGIT ":" 2DIGIT [":" 2DIGIT]
  1706.                                                  ; 00:00:00 - 23:59:59
  1707.  
  1708.      zone        =  "UT"  / "GMT"                ; Universal Time
  1709.                                                  ; North American : UT
  1710.                  /  "EST" / "EDT"                ;  Eastern:  - 5/ - 4
  1711.                  /  "CST" / "CDT"                ;  Central:  - 6/ - 5
  1712.                  /  "MST" / "MDT"                ;  Mountain: - 7/ - 6
  1713.                  /  "PST" / "PDT"                ;  Pacific:  - 8/ - 7
  1714.                  /  1ALPHA                       ; Military: Z = UT;
  1715.                                                  ;  A:-1; (J not used)
  1716.                                                  ;  M:-12; N:+1; Y:+12
  1717.                  / ( ("+" / "-") 4DIGIT )        ; Local differential
  1718.                                                  ;  hours+min. (HHMM)
  1719.  
  1720.      _5._2.  _S_e_m_a_n_t_i_c_s
  1721.  
  1722.           If included, day-of-week must be the day implied by the date
  1723.      specification.
  1724.  
  1725.           Time zone may be indicated in several ways.  "UT" is Univer-
  1726.      sal  Time  (formerly called "Greenwich Mean Time"); "GMT" is per-
  1727.      mitted as a reference to Universal Time.  The  military  standard
  1728.      uses  a  single  character for each zone.  "Z" is Universal Time.
  1729.      "A" indicates one hour earlier, and "M" indicates 12  hours  ear-
  1730.      lier;  "N"  is  one  hour  later, and "Y" is 12 hours later.  The
  1731.      letter "J" is not used.  The other remaining two forms are  taken
  1732.      from ANSI standard X3.51-1975.  One allows explicit indication of
  1733.      the amount of offset from UT; the other uses  common  3-character
  1734.      strings for indicating time zones in North America.
  1735.  
  1736.  
  1737.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22226666 ----                      RRRRFFFFCCCC ####888822222222
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1750.  
  1751.  
  1752.      _6.  _A_D_D_R_E_S_S _S_P_E_C_I_F_I_C_A_T_I_O_N
  1753.  
  1754.      _6._1.  _S_y_n_t_a_x
  1755.  
  1756.      address     =  mailbox                      ; one addressee
  1757.                  /  group                        ; named list
  1758.  
  1759.      group       =  phrase ":" [#mailbox] ";"
  1760.  
  1761.      mailbox     =  addr-spec                    ; simple address
  1762.                  /  phrase route-addr            ; name & addr-spec
  1763.  
  1764.      route-addr  =  "<" [route] addr-spec ">"
  1765.  
  1766.      route       =  1#("@" domain) ":"           ; path-relative
  1767.  
  1768.      addr-spec   =  local-part "@" domain        ; global address
  1769.  
  1770.      local-part  =  word *("." word)             ; uninterpreted
  1771.                                                  ; case-preserved
  1772.  
  1773.      domain      =  sub-domain *("." sub-domain)
  1774.  
  1775.      sub-domain  =  domain-ref / domain-literal
  1776.  
  1777.      domain-ref  =  atom                         ; symbolic reference
  1778.  
  1779.      _6._2.  _S_e_m_a_n_t_i_c_s
  1780.  
  1781.           A mailbox receives mail.  It is a  conceptual  entity  which
  1782.      does  not necessarily pertain to file storage.  For example, some
  1783.      sites may choose to print mail on their line printer and  deliver
  1784.      the output to the addressee's desk.
  1785.  
  1786.           A mailbox specification comprises a person, system  or  pro-
  1787.      cess name reference, a domain-dependent string, and a name-domain
  1788.      reference.  The name reference is optional and is usually used to
  1789.      indicate  the  human name of a recipient.  The name-domain refer-
  1790.      ence specifies a sequence of sub-domains.   The  domain-dependent
  1791.      string is uninterpreted, except by the final sub-domain; the rest
  1792.      of the mail service merely transmits it as a literal string.
  1793.  
  1794.      _6._2._1.  _D_o_m_a_i_n_s
  1795.  
  1796.         A name-domain is a set of registered (mail)  names.   A  name-
  1797.         domain  specification  resolves  to  a subordinate name-domain
  1798.         specification  or  to  a  terminal  domain-dependent   string.
  1799.         Hence,  domain  specification  is  extensible,  permitting any
  1800.         number of registration levels.
  1801.  
  1802.  
  1803.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22227777 ----                      RRRRFFFFCCCC ####888822222222
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1816.  
  1817.  
  1818.         Name-domains model a global, logical, hierarchical  addressing
  1819.         scheme.   The  model is logical, in that an address specifica-
  1820.         tion is related to name registration and  is  not  necessarily
  1821.         tied  to  transmission  path.   The  model's  hierarchy  is  a
  1822.         directed graph, called an in-tree, such that there is a single
  1823.         path  from  the root of the tree to any node in the hierarchy.
  1824.         If more than one path actually exists, they are considered  to
  1825.         be different addresses.
  1826.  
  1827.         The root node is common to all addresses; consequently, it  is
  1828.         not  referenced.   Its  children  constitute "top-level" name-
  1829.         domains.  Usually, a service has access to its own full domain
  1830.         specification and to the names of all top-level name-domains.
  1831.  
  1832.         The "top" of the domain addressing hierarchy -- a child of the
  1833.         root  --  is  indicated  by  the right-most field, in a domain
  1834.         specification.  Its child is specified to the left, its  child
  1835.         to the left, and so on.
  1836.  
  1837.         Some groups provide formal registration services;  these  con-
  1838.         stitute   name-domains   that  are  independent  logically  of
  1839.         specific machines.  In addition, networks and machines  impli-
  1840.         citly  compose name-domains, since their membership usually is
  1841.         registered in name tables.
  1842.  
  1843.         In the case of formal registration, an organization implements
  1844.         a  (distributed)  data base which provides an address-to-route
  1845.         mapping service for addresses of the form:
  1846.  
  1847.                          person@registry.organization
  1848.  
  1849.         Note that "organization" is a logical  entity,  separate  from
  1850.         any particular communication network.
  1851.  
  1852.         A mechanism for accessing "organization" is universally avail-
  1853.         able.   That mechanism, in turn, seeks an instantiation of the
  1854.         registry; its location is not indicated in the address specif-
  1855.         ication.   It  is assumed that the system which operates under
  1856.         the name "organization" knows how to find a subordinate regis-
  1857.         try.  The registry will then use the "person" string to deter-
  1858.         mine where to send the mail specification.
  1859.  
  1860.         The latter,  network-oriented  case  permits  simple,  direct,
  1861.         attachment-related address specification, such as:
  1862.  
  1863.                               user@host.network
  1864.  
  1865.         Once the network is accessed, it is expected  that  a  message
  1866.         will  go  directly  to the host and that the host will resolve
  1867.  
  1868.  
  1869.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22228888 ----                      RRRRFFFFCCCC ####888822222222
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1882.  
  1883.  
  1884.         the user name, placing the message in the user's mailbox.
  1885.  
  1886.      _6._2._2.  _A_b_b_r_e_v_i_a_t_e_d _D_o_m_a_i_n _S_p_e_c_i_f_i_c_a_t_i_o_n
  1887.  
  1888.         Since any number of  levels  is  possible  within  the  domain
  1889.         hierarchy,  specification  of  a  fully  qualified address can
  1890.         become inconvenient.  This standard permits abbreviated domain
  1891.         specification, in a special case:
  1892.  
  1893.             For the address of  the  sender,  call  the  left-most
  1894.             sub-domain  Level  _n.   In a header address, if all of
  1895.             the sub-domains above (i.e., to the right of) Level  _n
  1896.             are  the same as those of the sender, then they do not
  1897.             have to appear in the specification.   Otherwise,  the
  1898.             address must be fully qualified.
  1899.  
  1900.             This feature is subject  to  approval  by  local  sub-
  1901.             domains.   Individual  sub-domains  may  require their
  1902.             member systems, which originate mail, to provide  full
  1903.             domain  specification only.  When permitted, abbrevia-
  1904.             tions may be present  only  while  the  message  stays
  1905.             within the sub-domain of the sender.
  1906.  
  1907.             Use of this mechanism requires the sender's sub-domain
  1908.             to reserve the names of all top-level domains, so that
  1909.             full specifications can be distinguished from abbrevi-
  1910.             ated specifications.
  1911.  
  1912.         For example, if a sender's address is:
  1913.  
  1914.                  sender@registry-A.registry-1.organization-X
  1915.  
  1916.         and one recipient's address is:
  1917.  
  1918.                 recipient@registry-B.registry-1.organization-X
  1919.  
  1920.         and another's is:
  1921.  
  1922.                 recipient@registry-C.registry-2.organization-X
  1923.  
  1924.         then ".registry-1.organization-X" need not be specified in the
  1925.         the  message,  but  "registry-C.registry-2"  _d_o_e_s  have  to be
  1926.         specified.  That is, the first two addresses may  be  abbrevi-
  1927.         ated, but the third address must be fully specified.
  1928.  
  1929.         When a message crosses a domain boundary, all  addresses  must
  1930.         be  specified  in  the  full format, ending with the top-level
  1931.         name-domain in the right-most field.  It is the responsibility
  1932.         of  mail  forwarding services to ensure that addresses conform
  1933.  
  1934.  
  1935.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 22229999 ----                      RRRRFFFFCCCC ####888822222222
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  1948.  
  1949.  
  1950.         with this requirement.  In the case of abbreviated  addresses,
  1951.         the  relaying  service must make the necessary expansions.  It
  1952.         should be noted that it often is difficult for such a  service
  1953.         to locate all occurrences of address abbreviations.  For exam-
  1954.         ple, it will not be possible to find such abbreviations within
  1955.         the  body  of  the  message.   The "Return-Path" field can aid
  1956.         recipients in recovering from these errors.
  1957.  
  1958.         Note:  When passing any portion of an addr-spec onto a process
  1959.                which  does  not interpret data according to this stan-
  1960.                dard (e.g., mail protocol servers).  There must  be  _n_o
  1961.                LWSP-chars  preceding  or  following the at-sign or any
  1962.                delimiting period ("."), such as  shown  in  the  above
  1963.                examples,   and   only  _o_n_e  SPACE  between  contiguous
  1964.                <word>s.
  1965.  
  1966.      _6._2._3.  _D_o_m_a_i_n _T_e_r_m_s
  1967.  
  1968.         A domain-ref must be _t_h_e official name of a registry, network,
  1969.         or  host.   It  is  a  symbolic  reference, within a name sub-
  1970.         domain.  At times, it is necessary to bypass standard  mechan-
  1971.         isms  for  resolving  such  references,  using  more primitive
  1972.         information, such as a network host address  rather  than  its
  1973.         associated host name.
  1974.  
  1975.         To permit such references, this standard provides the  domain-
  1976.         literal  construct.   Its contents must conform with the needs
  1977.         of the sub-domain in which it is interpreted.
  1978.  
  1979.         Domain-literals which refer to domains within the ARPA  Inter-
  1980.         net  specify  32-bit  Internet addresses, in four 8-bit fields
  1981.         noted in decimal, as described in Request for  Comments  #820,
  1982.         "Assigned Numbers."  For example:
  1983.  
  1984.                                  [10.0.3.19]
  1985.  
  1986.         Note:  _T_h_e _u_s_e _o_f _d_o_m_a_i_n-_l_i_t_e_r_a_l_s _i_s _s_t_r_o_n_g_l_y _d_i_s_c_o_u_r_a_g_e_d.  It
  1987.                is  permitted  only  as  a means of bypassing temporary
  1988.                system limitations, such as name tables which  are  not
  1989.                complete.
  1990.  
  1991.         The names of "top-level" domains, and  the  names  of  domains
  1992.         under  in  the  ARPA Internet, are registered with the Network
  1993.         Information Center, SRI International, Menlo Park, California.
  1994.  
  1995.      _6._2._4.  _D_o_m_a_i_n-_D_e_p_e_n_d_e_n_t _L_o_c_a_l _S_t_r_i_n_g
  1996.  
  1997.         The local-part of an  addr-spec  in  a  mailbox  specification
  1998.         (i.e.,  the  host's  name for the mailbox) is understood to be
  1999.  
  2000.  
  2001.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33330000 ----                      RRRRFFFFCCCC ####888822222222
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2014.  
  2015.  
  2016.         whatever the receiving mail protocol server allows.  For exam-
  2017.         ple,  some systems do not understand mailbox references of the
  2018.         form "P. D. Q. Bach", but others do.
  2019.  
  2020.         This specification treats periods (".") as lexical separators.
  2021.         Hence,  their  presence  in  local-parts which are not quoted-
  2022.         strings, is detected.   However,  such  occurrences  carry  _n_o
  2023.         semantics.  That is, if a local-part has periods within it, an
  2024.         address parser will divide the local-part into several tokens,
  2025.         but  the  sequence  of  tokens will be treated as one uninter-
  2026.         preted unit.  The sequence  will  be  re-assembled,  when  the
  2027.         address is passed outside of the system such as to a mail pro-
  2028.         tocol service.
  2029.  
  2030.         For example, the address:
  2031.  
  2032.                            First.Last@Registry.Org
  2033.  
  2034.         is legal and does not require the local-part to be  surrounded
  2035.         with  quotation-marks.   (However,  "First  Last" _d_o_e_s require
  2036.         quoting.)  The local-part of the address, when passed  outside
  2037.         of  the  mail  system,  within  the  Registry.Org  domain,  is
  2038.         "First.Last", again without quotation marks.
  2039.  
  2040.      _6._2._5.  _B_a_l_a_n_c_i_n_g _L_o_c_a_l-_P_a_r_t _a_n_d _D_o_m_a_i_n
  2041.  
  2042.         In some cases, the boundary between local-part and domain  can
  2043.         be  flexible.  The local-part may be a simple string, which is
  2044.         used for the final determination of the  recipient's  mailbox.
  2045.         All  other  levels  of  reference  are, therefore, part of the
  2046.         domain.
  2047.  
  2048.         For some systems, in the case of abbreviated reference to  the
  2049.         local  and  subordinate  sub-domains,  it  may  be possible to
  2050.         specify only one reference within the domain  part  and  place
  2051.         the  other,  subordinate  name-domain  references  within  the
  2052.         local-part.  This would appear as:
  2053.  
  2054.                         mailbox.sub1.sub2@this-domain
  2055.  
  2056.         Such a specification would be acceptable  to  address  parsers
  2057.         which  conform  to  RFC  #733,  but  do not support this newer
  2058.         Internet standard.  While contrary to the intent of this stan-
  2059.         dard, the form is legal.
  2060.  
  2061.         Also, some sub-domains have a specification syntax which  does
  2062.  
  2063.  
  2064.  
  2065.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33331111 ----                      RRRRFFFFCCCC ####888822222222
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2078.  
  2079.  
  2080.         not conform to this standard.  For example:
  2081.  
  2082.                       sub-net.mailbox@sub-domain.domain
  2083.  
  2084.         uses a different parsing  sequence  for  local-part  than  for
  2085.         domain.
  2086.  
  2087.         Note:  As a rule,  the  domain  specification  should  contain
  2088.                fields  which  are  encoded  according to the syntax of
  2089.                this standard and which contain  generally-standardized
  2090.                information.   The local-part specification should con-
  2091.                tain only that portion of the  address  which  deviates
  2092.                from the form or intention of the domain field.
  2093.  
  2094.      _6._2._6.  _M_u_l_t_i_p_l_e _M_a_i_l_b_o_x_e_s
  2095.  
  2096.         An individual may have several mailboxes and wish  to  receive
  2097.         mail  at  whatever  mailbox  is  convenient  for the sender to
  2098.         access.  This standard does not provide a means of  specifying
  2099.         "any member of" a list of mailboxes.
  2100.  
  2101.         A set of individuals may wish to receive mail as a single unit
  2102.         (i.e.,  a  distribution  list).  The <group> construct permits
  2103.         specification of such a list.  Recipient mailboxes are  speci-
  2104.         fied  within  the  bracketed  part (":" - ";").  A copy of the
  2105.         transmitted message is to be  sent  to  each  mailbox  listed.
  2106.         This  standard  does  not  permit  recursive  specification of
  2107.         groups within groups.
  2108.  
  2109.         While a list must be named, it is not required that  the  con-
  2110.         tents  of  the  list be included.  In this case, the <address>
  2111.         serves only as an indication of group distribution  and  would
  2112.         appear in the form:
  2113.  
  2114.                                     name:;
  2115.  
  2116.         Some mail  services  may  provide  a  group-list  distribution
  2117.         facility,  accepting  a single mailbox reference, expanding it
  2118.         to the full distribution list, and relaying the  mail  to  the
  2119.         list's  members.   This standard provides no additional syntax
  2120.         for indicating such a  service.   Using  the  <group>  address
  2121.         alternative,  while listing one mailbox in it, can mean either
  2122.         that the mailbox reference will be expanded to a list or  that
  2123.         there is a group with one member.
  2124.  
  2125.      _6._2._7.  _E_x_p_l_i_c_i_t _P_a_t_h _S_p_e_c_i_f_i_c_a_t_i_o_n
  2126.  
  2127.         At times, a  message  originator  may  wish  to  indicate  the
  2128.         transmission  path  that  a  message  should  follow.  This is
  2129.  
  2130.  
  2131.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33332222 ----                      RRRRFFFFCCCC ####888822222222
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2144.  
  2145.  
  2146.         called source routing.  The normal addressing scheme, used  in
  2147.         an  addr-spec,  is  carefully separated from such information;
  2148.         the <route> portion of a route-addr is provided for such occa-
  2149.         sions.  It specifies the sequence of hosts and/or transmission
  2150.         services that are  to  be  traversed.   Both  domain-refs  and
  2151.         domain-literals may be used.
  2152.  
  2153.         Note:  The use of source routing is discouraged.   Unless  the
  2154.                sender has special need of path restriction, the choice
  2155.                of transmission route should be left to the mail  tran-
  2156.                sport service.
  2157.  
  2158.      _6._3.  _R_e_s_e_r_v_e_d _A_d_d_r_e_s_s
  2159.  
  2160.           It often is necessary to send mail to a site, without  know-
  2161.      ing  any  of its valid addresses.  For example, there may be mail
  2162.      system dysfunctions, or a user may wish to find  out  a  person's
  2163.      correct address, at that site.
  2164.  
  2165.           This standard specifies a single, reserved  mailbox  address
  2166.      (local-part)  which  is  to  be valid at each site.  Mail sent to
  2167.      that address is to be routed to  a  person  responsible  for  the
  2168.      site's mail system or to a person with responsibility for general
  2169.      site operation.  The name of the reserved local-part address is:
  2170.  
  2171.                                 Postmaster
  2172.  
  2173.      so that "Postmaster@domain" is required to be valid.
  2174.  
  2175.      Note:  This reserved local-part must be  matched  without  sensi-
  2176.             tivity to alphabetic case, so that "POSTMASTER", "postmas-
  2177.             ter", and even "poStmASteR" is to be accepted.
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33333333 ----                      RRRRFFFFCCCC ####888822222222
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2208.  
  2209.  
  2210.      _7.  _B_I_B_L_I_O_G_R_A_P_H_Y
  2211.  
  2212.  
  2213.      ANSI.  "USA Standard Code  for  Information  Interchange,"  X3.4.
  2214.         American  National Standards Institute: New York (1968).  Also
  2215.         in:  Feinler, E.  and J. Postel, eds., "ARPANET Protocol Hand-
  2216.         book", NIC 7104.
  2217.  
  2218.      ANSI.  "Representations of Universal Time, Local  Time  Differen-
  2219.         tials,  and United States Time Zone References for Information
  2220.         Interchange," X3.51-1975.  American National Standards  Insti-
  2221.         tute:  New York (1975).
  2222.  
  2223.      Bemer, R.W., "Time and the Computer."  In:  Interface  Age  (Feb.
  2224.         1979).
  2225.  
  2226.      Bennett, C.J.  "JNT Mail Protocol".  Joint Network Team,  Ruther-
  2227.         ford and Appleton Laboratory:  Didcot, England.
  2228.  
  2229.      Bhushan, A.K., Pogran, K.T., Tomlinson,  R.S.,  and  White,  J.E.
  2230.         "Standardizing  Network  Mail  Headers,"   ARPANET Request for
  2231.         Comments No. 561, Network Information Center  No.  18516;  SRI
  2232.         International:  Menlo Park (September 1973).
  2233.  
  2234.      Birrell, A.D., Levin, R.,  Needham,  R.M.,  and  Schroeder,  M.D.
  2235.         "Grapevine:  An Exercise in Distributed Computing," Communica-
  2236.         tions of the ACM 25, 4 (April 1982), 260-274.
  2237.  
  2238.      Crocker,  D.H.,  Vittal,  J.J.,  Pogran,  K.T.,  Henderson,  D.A.
  2239.         "Standard  for  the  Format  of  ARPA  Network  Text Message,"
  2240.         ARPANET Request for  Comments  No.  733,  Network  Information
  2241.         Center  No.  41952.   SRI International:  Menlo Park (November
  2242.         1977).
  2243.  
  2244.      Feinler, E.J. and Postel, J.B.  ARPANET Protocol  Handbook,  Net-
  2245.         work  Information  Center  No.  7104   (NTIS AD A003890).  SRI
  2246.         International:  Menlo Park (April 1976).
  2247.  
  2248.      Harary, F.   "Graph  Theory".   Addison-Wesley:   Reading,  Mass.
  2249.         (1969).
  2250.  
  2251.      Levin, R. and Schroeder, M.  "Transport  of  Electronic  Messages
  2252.         through  a  Network,"   TeleInformatics  79, pp. 29-33.  North
  2253.         Holland (1979).  Also  as  Xerox  Palo  Alto  Research  Center
  2254.         Technical Report CSL-79-4.
  2255.  
  2256.      Myer, T.H. and Henderson, D.A.  "Message Transmission  Protocol,"
  2257.         ARPANET  Request  for  Comments,  No. 680, Network Information
  2258.         Center No. 32116.  SRI International:  Menlo Park (1975).
  2259.  
  2260.  
  2261.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33334444 ----                      RRRRFFFFCCCC ####888822222222
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2274.  
  2275.  
  2276.      NBS.  "Specification of Message Format for Computer Based Message
  2277.         Systems, Recommended Federal Information Processing Standard."
  2278.         National  Bureau   of   Standards:    Gaithersburg,   Maryland
  2279.         (October 1981).
  2280.  
  2281.      NIC.  Internet Protocol Transition Workbook.  Network Information
  2282.         Center,   SRI-International,  Menlo  Park,  California  (March
  2283.         1982).
  2284.  
  2285.      Oppen, D.C. and Dalal, Y.K.  "The Clearinghouse:  A Decentralized
  2286.         Agent  for  Locating  Named  Objects in a Distributed Environ-
  2287.         ment," OPD-T8103.  Xerox Office Products Division:  Palo Alto,
  2288.         CA. (October 1981).
  2289.  
  2290.      Postel, J.B.  "Assigned Numbers,"  ARPANET Request for  Comments,
  2291.         No. 820.  SRI International:  Menlo Park (August 1982).
  2292.  
  2293.      Postel, J.B.  "Simple Mail Transfer  Protocol,"  ARPANET  Request
  2294.         for Comments, No. 821.  SRI International:  Menlo Park (August
  2295.         1982).
  2296.  
  2297.      Shoch, J.F.  "Internetwork naming, addressing  and  routing,"  in
  2298.         Proc. 17th IEEE Computer Society International Conference, pp.
  2299.         72-79, Sept. 1978, IEEE Cat. No. 78 CH 1388-8C.
  2300.  
  2301.      Su, Z. and Postel, J.  "The Domain Naming Convention for Internet
  2302.         User  Applications,"  ARPANET  Request  for Comments, No. 819.
  2303.         SRI International:  Menlo Park (August 1982).
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33335555 ----                      RRRRFFFFCCCC ####888822222222
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.  
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2338.  
  2339.  
  2340.                                  APPENDIX
  2341.  
  2342.  
  2343.      _H.  _E_X_A_M_P_L_E_S
  2344.  
  2345.      _H._1.  _A_d_d_r_e_s_s_e_s
  2346.  
  2347.      _H._1._1.  Alfred Neuman <Neuman@BBN-TENEXA>
  2348.  
  2349.      _H._1._2.  Neuman@BBN-TENEXA
  2350.  
  2351.              These two "Alfred Neuman" examples have identical  seman-
  2352.         tics, as far as the operation of the local host's mail sending
  2353.         (distribution) program (also sometimes  called  its  "mailer")
  2354.         and  the remote host's mail protocol server are concerned.  In
  2355.         the first example, the  "Alfred  Neuman"  is  ignored  by  the
  2356.         mailer,  as "Neuman@BBN-TENEXA" completely specifies the reci-
  2357.         pient.  The second example contains  no  superfluous  informa-
  2358.         tion,  and,  again,  "Neuman@BBN-TENEXA" is the intended reci-
  2359.         pient.
  2360.  
  2361.         Note:  When the message crosses name-domain  boundaries,  then
  2362.                these specifications must be changed, so as to indicate
  2363.                the remainder of the hierarchy, starting with  the  top
  2364.                level.
  2365.  
  2366.      _H._1._3.  "George, Ted" <Shared@Group.Arpanet>
  2367.  
  2368.              This form might be used to indicate that a single mailbox
  2369.         is  shared  by several users.  The quoted string is ignored by
  2370.         the originating host's mailer, because  "Shared@Group.Arpanet"
  2371.         completely specifies the destination mailbox.
  2372.  
  2373.      _H._1._4.  Wilt . (the  Stilt) Chamberlain@NBA.US
  2374.  
  2375.              The "(the  Stilt)" is a comment, which is _n_o_t included in
  2376.         the  destination  mailbox  address  handed  to the originating
  2377.         system's mailer.  The local-part of the address is the  string
  2378.         "Wilt.Chamberlain", with _n_o space between the first and second
  2379.         words.
  2380.  
  2381.      _H._1._5.  Address Lists
  2382.  
  2383.      Gourmets:  Pompous Person <WhoZiWhatZit@Cordon-Bleu>,
  2384.                 Childs@WGBH.Boston, Galloping Gourmet@
  2385.                 ANT.Down-Under (Australian National Television),
  2386.                 Cheapie@Discount-Liquors;,
  2387.        Cruisers:  Port@Portugal, Jones@SEA;,
  2388.          Another@Somewhere.SomeOrg
  2389.  
  2390.  
  2391.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33336666 ----                      RRRRFFFFCCCC ####888822222222
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2404.  
  2405.  
  2406.         This group list example points out the use of comments and the
  2407.         mixing of addresses and groups.
  2408.  
  2409.      _H._2.  _O_r_i_g_i_n_a_t_o_r _I_t_e_m_s
  2410.  
  2411.      _H._2._1.  Author-sent
  2412.  
  2413.              George Jones logs into his host  as  "Jones".   He  sends
  2414.         mail himself.
  2415.  
  2416.             From:  Jones@Group.Org
  2417.  
  2418.         or
  2419.  
  2420.             From:  George Jones <Jones@Group.Org>
  2421.  
  2422.      _H._2._2.  Secretary-sent
  2423.  
  2424.              George Jones logs in as Jones on his  host.   His  secre-
  2425.         tary,  who logs in as Secy sends mail for him.  Replies to the
  2426.         mail should go to George.
  2427.  
  2428.             From:    George Jones <Jones@Group>
  2429.             Sender:  Secy@Other-Group
  2430.  
  2431.      _H._2._3.  Secretary-sent, for user of shared directory
  2432.  
  2433.              George Jones' secretary sends mail  for  George.  Replies
  2434.         should go to George.
  2435.  
  2436.             From:     George Jones<Shared@Group.Org>
  2437.             Sender:   Secy@Other-Group
  2438.  
  2439.         Note that there need not be a space between  "Jones"  and  the
  2440.         "<",  but  adding a space enhances readability (as is the case
  2441.         in other examples.
  2442.  
  2443.      _H._2._4.  Committee activity, with one author
  2444.  
  2445.              George is a member of a committee.  He wishes to have any
  2446.         replies to his message go to all committee members.
  2447.  
  2448.             From:     George Jones <Jones@Host.Net>
  2449.             Sender:   Jones@Host
  2450.             Reply-To: The Committee: Jones@Host.Net,
  2451.                                      Smith@Other.Org,
  2452.                                      Doe@Somewhere-Else;
  2453.  
  2454.         Note  that  if  George  had  not  included  himself   in   the
  2455.  
  2456.  
  2457.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33337777 ----                      RRRRFFFFCCCC ####888822222222
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2470.  
  2471.  
  2472.         enumeration  of  The  Committee,  he  would not have gotten an
  2473.         implicit reply; the presence of the  "Reply-to"  field  _s_u_p_e_r_-
  2474.         _s_e_d_e_s the sending of a reply to the person named in the "From"
  2475.         field.
  2476.  
  2477.      _H._2._5.  Secretary acting as full agent of author
  2478.  
  2479.              George Jones asks his secretary  (Secy@Host)  to  send  a
  2480.         message for him in his capacity as Group.  He wants his secre-
  2481.         tary to handle all replies.
  2482.  
  2483.             From:     George Jones <Group@Host>
  2484.             Sender:   Secy@Host
  2485.             Reply-To: Secy@Host
  2486.  
  2487.      _H._2._6.  Agent for user without online mailbox
  2488.  
  2489.              A friend  of  George's,  Sarah,  is  visiting.   George's
  2490.         secretary  sends  some  mail to a friend of Sarah in computer-
  2491.         land.  Replies should go to George, whose mailbox is Jones  at
  2492.         Registry.
  2493.  
  2494.             From:     Sarah Friendly <Secy@Registry>
  2495.             Sender:   Secy-Name <Secy@Registry>
  2496.             Reply-To: Jones@Registry.
  2497.  
  2498.      _H._2._7.  Agent for member of a committee
  2499.  
  2500.              George's secretary sends out a message which was authored
  2501.         jointly by all the members of a committee.  Note that the name
  2502.         of the committee cannot be specified, since <group> names  are
  2503.         not permitted in the From field.
  2504.  
  2505.             From:   Jones@Host,
  2506.                     Smith@Other-Host,
  2507.                     Doe@Somewhere-Else
  2508.             Sender: Secy@SHost
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33338888 ----                      RRRRFFFFCCCC ####888822222222
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2534.  
  2535.  
  2536.      _H._3.  _C_o_m_p_l_e_t_e _H_e_a_d_e_r_s
  2537.  
  2538.      _H._3._1.  Minimum required
  2539.  
  2540.      Date:     26 Aug 76 1429 EDT        Date:     26 Aug 76 1429 EDT
  2541.      From:     Jones@Registry.Org   or   From:     Jones@Registry.Org
  2542.      Bcc:                                To:       Smith@Registry.Org
  2543.  
  2544.         Note that the "Bcc" field may be empty, while the  "To"  field
  2545.         is required to have at least one address.
  2546.  
  2547.      _H._3._2.  Using some of the additional fields
  2548.  
  2549.      Date:     26 Aug 76 1430 EDT
  2550.      From:     George Jones<Group@Host>
  2551.      Sender:   Secy@SHOST
  2552.      To:       "Al Neuman"@Mad-Host,
  2553.                Sam.Irving@Other-Host
  2554.      Message-ID:  <some.string@SHOST>
  2555.  
  2556.      _H._3._3.  About as complex as you're going to get
  2557.  
  2558.      Date     :  27 Aug 76 0932 PDT
  2559.      >From     :  Ken Davis <KDavis@This-Host.This-net>
  2560.      Subject  :  Re: The Syntax in the RFC
  2561.      Sender   :  KSecy@Other-Host
  2562.      Reply-To :  Sam.Irving@Reg.Organization
  2563.      To       :  George Jones <Group@Some-Reg.An-Org>,
  2564.                  Al.Neuman@MAD.Publisher
  2565.      cc       :  Important folk:
  2566.                    Tom Softwood <Balsa@Tree.Root>,
  2567.                    "Sam Irving"@Other-Host;,
  2568.                  Standard Distribution:
  2569.                    /main/davis/people/standard@Other-Host,
  2570.                    "<Jones>standard.dist.3"@Tops-20-Host>;
  2571.      Comment  :  Sam is away on business. He asked me to handle
  2572.                  his mail for him.  He'll be able to provide  a
  2573.                  more  accurate  explanation  when  he  returns
  2574.                  next week.
  2575.      In-Reply-To: <some.string@DBM.Group>, George's message
  2576.      X-Special-action:  This is a sample of user-defined field-
  2577.                  names.  There could also be a field-name
  2578.                  "Special-action", but its name might later be
  2579.                  preempted
  2580.      Message-ID: <4231.629.XYzi-What@Other-Host>
  2581.  
  2582.  
  2583.  
  2584.  
  2585.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 33339999 ----                      RRRRFFFFCCCC ####888822222222
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2598.  
  2599.  
  2600.      _I.  _S_I_M_P_L_E _F_I_E_L_D _P_A_R_S_I_N_G
  2601.  
  2602.           Some mail-reading software systems may wish to perform  only
  2603.      minimal  processing,  ignoring  the internal syntax of structured
  2604.      field-bodies and treating them the  same  as  unstructured-field-
  2605.      bodies.  Such software will need only to distinguish:
  2606.  
  2607.          o   Header fields from the message body,
  2608.  
  2609.          o   Beginnings of fields from lines which continue fields,
  2610.  
  2611.          o   Field-names from field-contents.
  2612.  
  2613.           The abbreviated set of syntactic rules  which  follows  will
  2614.      suffice  for  this  purpose.  It describes a limited view of mes-
  2615.      sages and is a subset of the syntactic rules provided in the main
  2616.      part of this specification.  One small exception is that the con-
  2617.      tents of field-bodies consist only of text:
  2618.  
  2619.      _I._1.  _S_y_n_t_a_x
  2620.  
  2621.  
  2622.      message         =   *field *(CRLF *text)
  2623.  
  2624.      field           =    field-name ":" [field-body] CRLF
  2625.  
  2626.      field-name      =  1*<any CHAR, excluding CTLs, SPACE, and ":">
  2627.  
  2628.      field-body      =   *text [CRLF LWSP-char field-body]
  2629.  
  2630.  
  2631.      _I._2.  _S_e_m_a_n_t_i_c_s
  2632.  
  2633.           Headers occur before the message body and are terminated  by
  2634.      a null line (i.e., two contiguous CRLFs).
  2635.  
  2636.           A line which continues a header field begins with a SPACE or
  2637.      HTAB  character,  while  a  line  beginning a field starts with a
  2638.      printable character which is not a colon.
  2639.  
  2640.           A field-name consists of one or  more  printable  characters
  2641.      (excluding  colon,  space, and control-characters).  A field-name
  2642.      _m_u_s_t be contained on one line.  Upper and lower case are not dis-
  2643.      tinguished when comparing field-names.
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44440000 ----                      RRRRFFFFCCCC ####888822222222
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2662.  
  2663.  
  2664.      _J.  _D_I_F_F_E_R_E_N_C_E_S _F_R_O_M _R_F_C #_7_3_3
  2665.  
  2666.           The following summarizes the differences between this  stan-
  2667.      dard  and the one specified in Arpanet Request for Comments #733,
  2668.      "Standard for the Format of ARPA  Network  Text  Messages".   The
  2669.      differences  are  listed  in the order of their occurrence in the
  2670.      current specification.
  2671.  
  2672.      _J._1.  _F_i_e_l_d _D_e_f_i_n_i_t_i_o_n_s
  2673.  
  2674.      _J._1._1.  _F_i_e_l_d _n_a_m_e_s
  2675.  
  2676.         These now must be a sequence of  printable  characters.   They
  2677.         may not contain any LWSP-chars.
  2678.  
  2679.      _J._2.  _L_e_x_i_c_a_l _T_o_k_e_n_s
  2680.  
  2681.      _J._2._1.  _S_p_e_c_i_a_l_s
  2682.  
  2683.         The characters period ("."), left-square  bracket  ("["),  and
  2684.         right-square  bracket ("]") have been added.  For presentation
  2685.         purposes, and when passing a specification to  a  system  that
  2686.         does  not conform to this standard, periods are to be contigu-
  2687.         ous with their surrounding lexical tokens.   No  linear-white-
  2688.         space  is  permitted  between them.  The presence of one LWSP-
  2689.         char between other tokens is still directed.
  2690.  
  2691.      _J._2._2.  _A_t_o_m
  2692.  
  2693.         Atoms may not contain SPACE.
  2694.  
  2695.      _J._2._3.  _S_p_e_c_i_a_l _t_e_x_t
  2696.  
  2697.         ctext and qtext have had backslash ("\") added to the list  of
  2698.         prohibited characters.
  2699.  
  2700.      _J._2._4.  _D_o_m_a_i_n_s
  2701.  
  2702.         The lexical tokens  <domain-literal>  and  <dtext>  have  been
  2703.         added.
  2704.  
  2705.      _J._3.  _M_e_s_s_a_g_e _S_p_e_c_i_f_i_c_a_t_i_o_n
  2706.  
  2707.      _J._3._1.  _T_r_a_c_e
  2708.  
  2709.         The "Return-path:" and "Received:" fields have been specified.
  2710.  
  2711.  
  2712.  
  2713.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44441111 ----                      RRRRFFFFCCCC ####888822222222
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2726.  
  2727.  
  2728.      _J._3._2.  _F_r_o_m
  2729.  
  2730.         The "From" field must contain machine-usable addresses  (addr-
  2731.         spec).   Multiple  addresses may be specified, but named-lists
  2732.         (groups) may not.
  2733.  
  2734.      _J._3._3.  _R_e_s_e_n_t
  2735.  
  2736.         The meta-construct of prefacing field names  with  the  string
  2737.         "Resent-"  has been added, to indicate that a message has been
  2738.         forwarded by an intermediate recipient.
  2739.  
  2740.      _J._3._4.  _D_e_s_t_i_n_a_t_i_o_n
  2741.  
  2742.         A message must contain at least one destination address field.
  2743.         "To" and "CC" are required to contain at least one address.
  2744.  
  2745.      _J._3._5.  _I_n-_R_e_p_l_y-_T_o
  2746.  
  2747.         The field-body is no longer a comma-separated list, although a
  2748.         sequence is still permitted.
  2749.  
  2750.      _J._3._6.  _R_e_f_e_r_e_n_c_e
  2751.  
  2752.         The field-body is no longer a comma-separated list, although a
  2753.         sequence is still permitted.
  2754.  
  2755.      _J._3._7.  _E_n_c_r_y_p_t_e_d
  2756.  
  2757.         A field has been specified that permits  senders  to  indicate
  2758.         that the body of a message has been encrypted.
  2759.  
  2760.      _J._3._8.  _E_x_t_e_n_s_i_o_n-_f_i_e_l_d
  2761.  
  2762.         Extension fields are prohibited from beginning with the  char-
  2763.         acters "X-".
  2764.  
  2765.      _J._4.  _D_a_t_e _a_n_d _T_i_m_e _S_p_e_c_i_f_i_c_a_t_i_o_n
  2766.  
  2767.      _J._4._1.  _S_i_m_p_l_i_f_i_c_a_t_i_o_n
  2768.  
  2769.         Fewer optional forms are permitted  and  the  list  of  three-
  2770.         letter time zones has been shortened.
  2771.  
  2772.      _J._5.  _A_d_d_r_e_s_s _S_p_e_c_i_f_i_c_a_t_i_o_n
  2773.  
  2774.  
  2775.  
  2776.  
  2777.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44442222 ----                      RRRRFFFFCCCC ####888822222222
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2790.  
  2791.  
  2792.      _J._5._1.  _A_d_d_r_e_s_s
  2793.  
  2794.         The use of quoted-string, and the ":"-atom-":" construct, have
  2795.         been  removed.   An  address  now  is  either a single mailbox
  2796.         reference or is a named list of addresses.  The  latter  indi-
  2797.         cates a group distribution.
  2798.  
  2799.      _J._5._2.  _G_r_o_u_p_s
  2800.  
  2801.         Group lists are now required to to have a name.   Group  lists
  2802.         may not be nested.
  2803.  
  2804.      _J._5._3.  _M_a_i_l_b_o_x
  2805.  
  2806.         A mailbox specification  may  indicate  a  person's  name,  as
  2807.         before.   Such  a  named  list  no longer may specify multiple
  2808.         mailboxes and may not be nested.
  2809.  
  2810.      _J._5._4.  _R_o_u_t_e _a_d_d_r_e_s_s_i_n_g
  2811.  
  2812.         Addresses now are taken to be absolute, global specifications,
  2813.         independent  of transmission paths.  The <route> construct has
  2814.         been provided, to permit explicit specification  of  transmis-
  2815.         sion  path.   RFC  #733's  use  of multiple at-signs ("@") was
  2816.         intended as a general syntax  for  indicating  routing  and/or
  2817.         hierarchical addressing.  The current standard separates these
  2818.         specifications and only one at-sign is permitted.
  2819.  
  2820.      _J._5._5.  _A_t-_s_i_g_n
  2821.  
  2822.         The string " at " no longer is used as an  address  delimiter.
  2823.         Only at-sign ("@") serves the function.
  2824.  
  2825.      _J._5._6.  _D_o_m_a_i_n_s
  2826.  
  2827.         Hierarchical, logical name-domains have been added.
  2828.  
  2829.      _J._6.  _R_e_s_e_r_v_e_d _A_d_d_r_e_s_s
  2830.  
  2831.      The local-part "Postmaster" has been reserved, so that users  can
  2832.      be guaranteed at least one valid address at a site.
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44443333 ----                      RRRRFFFFCCCC ####888822222222
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2854.  
  2855.  
  2856.      _K.  _A_L_P_H_A_B_E_T_I_C_A_L _L_I_S_T_I_N_G _O_F _S_Y_N_T_A_X _R_U_L_E_S
  2857.  
  2858.      address     =  mailbox                      ; one addressee
  2859.                  /  group                        ; named list
  2860.      addr-spec   =  local-part "@" domain        ; global address
  2861.      ALPHA       =  <any ASCII alphabetic character>
  2862.                                                  ; (101-132, 65.- 90.)
  2863.                                                  ; (141-172, 97.-122.)
  2864.      atom        =  1*<any CHAR except specials, SPACE and CTLs>
  2865.      authentic   =   "From"       ":"   mailbox  ; Single author
  2866.                  / ( "Sender"     ":"   mailbox  ; Actual submittor
  2867.                      "From"       ":" 1#mailbox) ; Multiple authors
  2868.                                                  ;  or not sender
  2869.      CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)
  2870.      comment     =  "(" *(ctext / quoted-pair / comment) ")"
  2871.      CR          =  <ASCII CR, carriage return>  ; (     15,      13.)
  2872.      CRLF        =  CR LF
  2873.      ctext       =  <any CHAR excluding "(",     ; => may be folded
  2874.                      ")", "\" & CR, & including
  2875.                      linear-white-space>
  2876.      CTL         =  <any ASCII control           ; (  0- 37,  0.- 31.)
  2877.                      character and DEL>          ; (    177,     127.)
  2878.      date        =  1*2DIGIT month 2DIGIT        ; day month year
  2879.                                                  ;  e.g. 20 Jun 82
  2880.      dates       =   orig-date                   ; Original
  2881.                    [ resent-date ]               ; Forwarded
  2882.      date-time   =  [ day "," ] date time        ; dd mm yy
  2883.                                                  ;  hh:mm:ss zzz
  2884.      day         =  "Mon"  / "Tue" /  "Wed"  / "Thu"
  2885.                  /  "Fri"  / "Sat" /  "Sun"
  2886.      delimiters  =  specials / linear-white-space / comment
  2887.      destination =  "To"          ":" 1#address  ; Primary
  2888.                  /  "Resent-To"   ":" 1#address
  2889.                  /  "cc"          ":" 1#address  ; Secondary
  2890.                  /  "Resent-cc"   ":" 1#address
  2891.                  /  "bcc"         ":"  #address  ; Blind carbon
  2892.                  /  "Resent-bcc"  ":"  #address
  2893.      DIGIT       =  <any ASCII decimal digit>    ; ( 60- 71, 48.- 57.)
  2894.      domain      =  sub-domain *("." sub-domain)
  2895.      domain-literal =  "[" *(dtext / quoted-pair) "]"
  2896.      domain-ref  =  atom                         ; symbolic reference
  2897.      dtext       =  <any CHAR excluding "[",     ; => may be folded
  2898.                      "]", "\" & CR, & including
  2899.                      linear-white-space>
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44444444 ----                      RRRRFFFFCCCC ####888822222222
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2918.  
  2919.  
  2920.      extension-field =
  2921.                    <Any field which is defined in a document
  2922.                     published as a formal extension to this
  2923.                     specification; none will have names beginning
  2924.                     with the string "X-">
  2925.      field       =  field-name ":" [ field-body ] CRLF
  2926.      fields      =    dates                      ; Creation time,
  2927.                       source                     ;  author id & one
  2928.                     1*destination                ;  address required
  2929.                      *optional-field             ;  others optional
  2930.      field-body  =  field-body-contents
  2931.                     [CRLF LWSP-char field-body]
  2932.      field-body-contents =
  2933.                    <the ASCII characters making up the field-body, as
  2934.                     defined in the following sections, and consisting
  2935.                     of combinations of atom, quoted-string, and
  2936.                     specials tokens, or else consisting of texts>
  2937.      field-name  =  1*<any CHAR, excluding CTLs, SPACE, and ":">
  2938.      group       =  phrase ":" [#mailbox] ";"
  2939.      hour        =  2DIGIT ":" 2DIGIT [":" 2DIGIT]
  2940.                                                  ; 00:00:00 - 23:59:59
  2941.      HTAB        =  <ASCII HT, horizontal-tab>   ; (     11,       9.)
  2942.      LF          =  <ASCII LF, linefeed>         ; (     12,      10.)
  2943.      linear-white-space =  1*([CRLF] LWSP-char)  ; semantics = SPACE
  2944.                                                  ; CRLF => folding
  2945.      local-part  =  word *("." word)             ; uninterpreted
  2946.                                                  ; case-preserved
  2947.      LWSP-char   =  SPACE / HTAB                 ; semantics = SPACE
  2948.      mailbox     =  addr-spec                    ; simple address
  2949.                  /  phrase route-addr            ; name & addr-spec
  2950.      message     =  fields *( CRLF *text )       ; Everything after
  2951.                                                  ;  first null line
  2952.                                                  ;  is message body
  2953.      month       =  "Jan"  /  "Feb" /  "Mar"  /  "Apr"
  2954.                  /  "May"  /  "Jun" /  "Jul"  /  "Aug"
  2955.                  /  "Sep"  /  "Oct" /  "Nov"  /  "Dec"
  2956.      msg-id      =  "<" addr-spec ">"            ; Unique message id
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44445555 ----                      RRRRFFFFCCCC ####888822222222
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  2982.  
  2983.  
  2984.      optional-field =
  2985.                  /  "Message-ID"        ":"   msg-id
  2986.                  /  "Resent-Message-ID" ":"   msg-id
  2987.                  /  "In-Reply-To"       ":"  *(phrase / msg-id)
  2988.                  /  "References"        ":"  *(phrase / msg-id)
  2989.                  /  "Keywords"          ":"  #phrase
  2990.                  /  "Subject"           ":"  *text
  2991.                  /  "Comments"          ":"  *text
  2992.                  /  "Encrypted"         ":" 1#2word
  2993.                  /  extension-field              ; To be defined
  2994.                  /  user-defined-field           ; May be pre-empted
  2995.      orig-date   =  "Date"        ":"   date-time
  2996.      originator  =   authentic                   ; authenticated addr
  2997.                    [ "Reply-To"   ":" 1#address] )
  2998.      phrase      =  1*word                       ; Sequence of words
  2999.      qtext       =  <any CHAR excepting <">,     ; => may be folded
  3000.                      "\" & CR, and including
  3001.                      linear-white-space>
  3002.      quoted-pair =  "\" CHAR                     ; may quote any char
  3003.      quoted-string = <"> *(qtext/quoted-pair) <">; Regular qtext or
  3004.                                                  ;   quoted chars.
  3005.      received    =  "Received"    ":"            ; one per relay
  3006.                        ["from" domain]           ; sending host
  3007.                        ["by"   domain]           ; receiving host
  3008.                        ["via"  atom]             ; physical path
  3009.                       *("with" atom)             ; link/mail protocol
  3010.                        ["id"   msg-id]           ; receiver msg id
  3011.                        ["for"  addr-spec]        ; initial form
  3012.                         ";"    date-time         ; time received
  3013.  
  3014.      resent      =   resent-authentic
  3015.                    [ "Resent-Reply-To"  ":" 1#address] )
  3016.      resent-authentic =
  3017.                  =   "Resent-From"      ":"   mailbox
  3018.                  / ( "Resent-Sender"    ":"   mailbox
  3019.                      "Resent-From"      ":" 1#mailbox  )
  3020.      resent-date =  "Resent-Date" ":"   date-time
  3021.      return      =  "Return-path" ":" route-addr ; return address
  3022.      route       =  1#("@" domain) ":"           ; path-relative
  3023.      route-addr  =  "<" [route] addr-spec ">"
  3024.      source      = [  trace ]                    ; net traversals
  3025.                       originator                 ; original mail
  3026.                    [  resent ]                   ; forwarded
  3027.      SPACE       =  <ASCII SP, space>            ; (     40,      32.)
  3028.      specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
  3029.                  /  "," / ";" / ":" / "\" / <">  ;  string, to use
  3030.                  /  "." / "[" / "]"              ;  within a word.
  3031.      sub-domain  =  domain-ref / domain-literal
  3032.  
  3033.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44446666 ----                      RRRRFFFFCCCC ####888822222222
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  3046.  
  3047.  
  3048.      text        =  <any CHAR, including bare    ; => atoms, specials,
  3049.                      CR & bare LF, but NOT       ;  comments and
  3050.                      including CRLF>             ;  quoted-strings are
  3051.                                                  ;  NOT recognized.
  3052.      time        =  hour zone                    ; ANSI and Military
  3053.      trace       =    return                     ; path to sender
  3054.                     1*received                   ; receipt tags
  3055.      user-defined-field =
  3056.                    <Any field which has not been defined
  3057.                     in this specification or published as an
  3058.                     extension to this specification; names for
  3059.                     such fields must be unique and may be
  3060.                     pre-empted by published extensions>
  3061.      word        =  atom / quoted-string
  3062.      zone        =  "UT"  / "GMT"                ; Universal Time
  3063.                                                  ; North American : UT
  3064.                  /  "EST" / "EDT"                ;  Eastern:  - 5/ - 4
  3065.                  /  "CST" / "CDT"                ;  Central:  - 6/ - 5
  3066.                  /  "MST" / "MDT"                ;  Mountain: - 7/ - 6
  3067.                  /  "PST" / "PDT"                ;  Pacific:  - 8/ - 7
  3068.                  /  1ALPHA                       ; Military: Z = UT;
  3069.      <">         =  <ASCII quote mark>           ; (     42,      34.)
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- 44447777 ----                      RRRRFFFFCCCC ####888822222222
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113.      RFC #  822
  3114.  
  3115.      Obsoletes:  RFC #733  (NIC #41952)
  3116.  
  3117.  
  3118.  
  3119.  
  3120.  
  3121.  
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128.                         STANDARD FOR THE FORMAT OF
  3129.  
  3130.                         ARPA INTERNET TEXT MESSAGES
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.                              January 13, 1983
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.                                 Revised by
  3145.  
  3146.                              David H. Crocker
  3147.  
  3148.  
  3149.                       Dept. of Electrical Engineering
  3150.                  University of Delaware, Newark, DE  19711
  3151.                       Network:  DCrocker @ UDel-Relay
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  3173.  
  3174.  
  3175.                              TABLE OF CONTENTS
  3176.  
  3177.  
  3178.      PREFACE ....................................................   ii
  3179.  
  3180.      1.  INTRODUCTION ...........................................    1
  3181.  
  3182.          1.1.  Scope ............................................    1
  3183.          1.2.  Communication Framework ..........................    2
  3184.  
  3185.      2.  NOTATIONAL CONVENTIONS .................................    3
  3186.  
  3187.      3.  LEXICAL ANALYSIS OF MESSAGES ...........................    5
  3188.  
  3189.          3.1.  General Description ..............................    5
  3190.          3.2.  Header Field Definitions .........................    9
  3191.          3.3.  Lexical Tokens ...................................   10
  3192.          3.4.  Clarifications ...................................   11
  3193.  
  3194.      4.  MESSAGE SPECIFICATION ..................................   17
  3195.  
  3196.          4.1.  Syntax ...........................................   17
  3197.          4.2.  Forwarding .......................................   19
  3198.          4.3.  Trace Fields .....................................   20
  3199.          4.4.  Originator Fields ................................   21
  3200.          4.5.  Receiver Fields ..................................   23
  3201.          4.6.  Reference Fields .................................   23
  3202.          4.7.  Other Fields .....................................   24
  3203.  
  3204.      5.  DATE AND TIME SPECIFICATION ............................   26
  3205.  
  3206.          5.1.  Syntax ...........................................   26
  3207.          5.2.  Semantics ........................................   26
  3208.  
  3209.      6.  ADDRESS SPECIFICATION ..................................   27
  3210.  
  3211.          6.1.  Syntax ...........................................   27
  3212.          6.2.  Semantics ........................................   27
  3213.          6.3.  Reserved Address .................................   33
  3214.  
  3215.      7.  BIBLIOGRAPHY ...........................................   34
  3216.  
  3217.  
  3218.                              APPENDIX
  3219.  
  3220.      H.  EXAMPLES ...............................................   36
  3221.      I.  SIMPLE FIELD PARSING ...................................   40
  3222.      J.  DIFFERENCES FROM RFC #733 ..............................   41
  3223.      K.  ALPHABETICAL LISTING OF SYNTAX RULES ...................   44
  3224.  
  3225.  
  3226.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333              ---- iiii ----                      RRRRFFFFCCCC ####888822222222
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.      SSSSttttaaaannnnddddaaaarrrrdddd ffffoooorrrr AAAARRRRPPPPAAAA IIIInnnntttteeeerrrrnnnneeeetttt TTTTeeeexxxxtttt MMMMeeeessssssssaaaaggggeeeessss
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.      JJJJaaaannnnuuuuaaaarrrryyyy 11113333,,,, 1111999988883333             ---- iiiiiiii ----                      RRRRFFFFCCCC ####888822222222
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.