Zum Hauptinhalt springen

Anhang A. Alphabetische Liste der Syntaxregeln

<2-digit-year>    ::=   <two decimal digits>
<4-digit-year>    ::=   <four decimal digits>
<24-hour-time>    ::=   <hour> <minute>

<addressee-field> ::=   "To"          ":" <address-list>
                      | "cc"          ":" <address-list>
                      | "bcc"         ":" <address-list>
                      | "Fcc"         ":" <path-list>
<address-item>    ::=   <mach-addr-item>
                      | <group-name> ":" <address-list> ";"
                      | <any-name>
                      | <path>
<address-list>    ::=   <null> | <address-item>
                      | <address-item> "," <address-list>

<any-from-field>  ::=   "From"        ":" <address-list>

<any-name>        ::=   <quoted-string>

<at-indicator>    ::=   "at" | "@"

<atom>            ::=   <a sequence of one or more TELNET ASCII
                           alpha-numeric or graphics characters,
                           excluding all control characters
                           (those characters with a decimal value
                           less than 33 or equal to 127) and
                           <delimeters> >

<comment>         ::=   "(" <TELNET ASCII characters, except
                           <crlf> > ")"

<cr>              ::=   <TELNET ASCII carriage return (decimal 13)>
<crlf>            ::=   <TELNET ASCII carriage return/line feed
                           (decimal 13, followed by decimal 10)>

<date>            ::=   <string-date> | <slash-date>
<date-field>      ::=   "Date"        ":" <date-time>
<date-time>       ::=   <day> <date> <time>
<day>             ::=   <null> | <day-of-week> ","
<day-of-month>    ::=   <one or two decimal digits>
<day-of-week>     ::=   "Monday"    | "Mon"
                      | "Tuesday"   | "Tue"
                      | "Wednesday" | "Wed"
                      | "Thursday"  | "Thu"
                      | "Friday"    | "Fri"
                      | "Saturday"  | "Sat"
                      | "Sunday"    | "Sun"

<delimeter>       ::=   <specials> | <comment>
                      | <linear-white-space> | <crlf>

<field>           ::=   <field-name> ":" <field-body>
<field-body>      ::=   <field-body-contents>
                      | <field-body-contents> <crlf>
                           <linear-white-space-CHAR> <field-body>
<field-body-contents> ::= <the TELNET ASCII characters making up
                           the field body, as defined in the
                           following sections and consisting of
                           combinations of <atom>, <quoted-
                           string>, <text-line>, and <specials>
                           tokens>

<field-name>      ::=   <atom> | <atom> <field-name>

<group-name>      ::=   <phrase>

<headers>         ::=   <required-headers>
                      | <required-headers> <optional-headers>

<host-indicator>  ::=   <at-indicator> <host-name>
<host-name>       ::=   <atom>  | <decimal host address>
<host-phrase>     ::=   <phrase> <host-indicator>

<hour>            ::=   <two decimal digits>

<lf>              ::=   <TELNET ASCII line feed (decimal 10)>
<linear-white-space>::= <linear-white-space-char>
                      | <linear-white-space-char>
                           <linear-white-space>
<linear-white-space-char>::=  <space> | <horizontal-tab>

<mach-addr-item>  ::=   <mailbox> | <phrase> "<" <mailbox-list> ">"
<mach-addr-list>  ::=   <mach-addr-item>
                      | <mach-addr-item> "," <address-list>

<mach-from-field> ::=   "From"        ":" <mach-addr-item>
<mach-from-list>  ::=   "From"        ":" <mach-addr-list>

<mach-host-phrase>::=   "<" <host-phrase> ">"

<mailbox>         ::=   <host-phrase>
<mailbox-list>    ::=   <mailbox> | <mailbox> "," <mailbox-list>

<message>         ::=   <headers>
                      | <headers> <crlf> <message-text>

<message-text>    ::=   <a sequence of zero of more TELNET ASCII
                           characters>

<minute>          ::=   <two decimal digits>

<numeric-month>   ::=   <one or two decimal digits>

<optional-headers>::=   <optional-header-field>
                      | <optional-headers> <optional-header-field>
<optional-header-field> ::= <addressee-field> | <extension-field>

<originator>      ::=   <mach-from-field>
                      | <mach-from-list> <sender-field>
                      | <mach-from-field> <reply-to-field>
                      | <any-from-field> <sender-field>
                           <reply-to-field>

<path>            ::=   ":" "File" ":" <path-name>
<path-item>       ::=   <host-phrase>
<path-list>       ::=   <path-item> | <path-item> "," <path-list>
<path-name>       ::=   <path-item> | "<" <path-list> ">"

<phrase>          ::=   <word> | <word> <phrase>
<phrase-list>     ::=   <null> | <phrase>
                      | <phrase> "," <phrase-list>

<reference-item>  ::=   <phrase> | <mach-host-phrase>
<reference-list>  ::=   <null> | <reference-item>
                      | <reference-item> "," <reference-list>

<quoted-string>   ::=   <double quote mark ("), decimal 34>
                           <a sequence of one or more TELNET
                           ASCII characters, where two adjacent
                           quotes are treated as a single quote
                           and part of the string> <">

<reply-to-field>  ::=   "Reply-To"    ":" <mach-addr-list>

<required-headers> ::=  <date-field> <originator>

<sender-field>    ::=   "Sender"      ":" <host-phrase>

<slash-date>      ::=   <numeric-month> "/" <date-of-month>
                                        "/" <2-digit-year>
<space>           ::=   <TELNET ASCII space (decimal 32)>

<specials>        ::=   "(" | ")" | "<" | ">"
                      | "@" | "," | ";" | ":" | <">

<string-date>     ::=   <day-of-month> <string-month>
<string-month>    ::=   "January"  | "Jan" | "February" | "Feb"
                      | "March"    | "Mar" | "April"    | "Apr"
                      | "May"              | "June"     | "Jun"
                      | "July"     | "Jul" | "August"   | "Aug"
                      | "September"| "Sep" | "October"  | "Oct"
                      | "November" | "Nov" | "December" | "Dec"

<tab>             ::=   <TELNET ASCII tab   (decimal  9)>

<text-line>        ::=   <a sequence of one or more TELNET ASCII
                           characters excluding <cr> and <lf> >

<time>            ::=   <24-hour-time> "-" <time-zone>
<time-zone>       ::=   "GMT" | "Z"   | "GDT" | "AST" | "ADT
                      | "EST" | "EDT" | "CST" | "CDT"
                      | "MST" | "MDT" | "PST" | "PDT"
                      | "YST" | "YDT" | "HST" | "HDT"

<user-defined-field> ::= <A <field> which has a <field-name> not
                           defined in this specification>

<word>            ::=   <atom> | <quoted-string>