Zum Hauptinhalt springen

Abschnitt I: Grundlegende Nachrichtensyntax

<message>            ::=     <header><crlf><body>
<header>             ::=     <required header><optional header>
<required header>    ::=     <date item><sender item>
<date item>          ::=     DATE:<sp><date><sp>AT<sp>
                             <time>-<zone><crlf>
<date>               ::=     <vdate>  !  <tdate>
<vdate>              ::=     <dayofmonth><SP><vmonth><SP><vyear>
<tdate>              ::=     <tmonth>/<dayofmonth>/<tyear>
<dayofmonth>         ::=     one or two decimal digits
<vmonth>             ::=     JAN ! FEB ! MAR ! APR ! MAY ! JUN !
                             JUL ! AUG ! SEP ! OCT ! NOV !  DEC
<tmonth>             ::=     one or two decimal digits
<vyear>              ::=     four decimal digits
<tyear>              ::=     two decimal digits
<zone>               ::=     EST ! EDT ! CST ! CDT ! MST ! MDT !
                             PST ! PDT ! GMT ! GDT
<time>               ::=     four decimal digits
<sender item         :=      SENDER: <sp><user><sp>AT<sp><host>
                             <crlf>
<optional header>    ::=     <subjects><optional items>
<subjects>           ::=     !<subject item> !
                             <subject item><subjects>
<subject item>       ::=     SUBJECT:<sp><line><crlf>
<optional items>     ::=     <optional item> ! <optional item>
                             <optional items>
<optional item>      ::=     <messid> ! <addressee item> !
                             <other item>
<addressee item>     ::=     <addressee keyword>:<sp><addressee
                             list><crlf>
<addressee keywork>  ::=     TO:! CC:! BCC:!
<messid>             ::=     Message-ID:<sp>[<Net
                             Address>}]<line>
                             <crlf>
<other item>         ::=     <other keyword>:<sp><line><crlf>
<other keyword>      ::=     FROM ! IN-REPLY-TO! REFERENCES!
                             KEYWORD ! PRECEDENCE !
                             MESSAGE-CLASS!
                             SPECIAL-HANDLING! AUTHENTICATION!
                             ACCESSION-KEY
<address list>       ::=     <addressee> ! <addressee><addressee
                             list>
<addressee>          ::=     <mailbox> ! <mailbox group>
<mailbox>            ::=     <user><host spec><attention spec>
<host spec>          ::=     !@<host>
<attention spec>     ::=     (ATTN:<sp><user list>)
<user list>          ::=     <user> ! <user><user list>
<mailbox group>      ::=     <group name>:(<group numbers>)
<group numbers>      ::=     ! (<mailbox list>)
<mailbox list>       ::=     <mailbox> ! <mailbox>,<mailboxlist>
<body>               ::=     <line><CRLF> ! <line><CRLF><body>
<user>               ::=     <word>
<host>               ::=     a standard host name
<group name>         ::=     ! <word>
<line>               ::=     a string containing any of the 128
                             ASCII
                             characters except CR and LF
<word>               ::=     a string containing any of the 128
                             ASCII
                             characters except CR, LF, and SP
<CRLF>               ::=     CR LF
<SP>                 ::=     space

Anmerkungen:

  1. Eine Nachricht darf höchstens ein MESSAGE-ID-Element enthalten.

  2. Alle Elemente mit demselben Schlüsselwort müssen zusammengefasst werden.

Bitte Folgendes beachten:

(1) Die Groß- und Kleinschreibung von Schlüsselwörtern -- insbesondere 'FROM', 'DATE', 'SUBJECT', 'AT', <host>, <zone>, <vmonth> und <keyword> -- ist unerheblich. Obwohl etwa 'FROM' in der obigen formalen Syntax in Großbuchstaben erscheint, kann es im Header einer tatsächlichen Nachricht als 'FROM', 'from' oder 'From' usw. erscheinen.

(2) Es wurde nicht versucht, das Format von <user> vorzuschreiben, außer dass Leerzeichen darin ausgeschlossen sind.

(3) Die Uhrzeit enthält keine internen Satzzeichen.