跳到主要内容

形式语法

实际实现邮件用户进程或服务器进程时所使用的简短关键字形式,是通过从相应的冗长形式中删去若干字符得到的。在下面的描述中,被删去的字符仍然列出,但用方括号括起。语法的终结符元素之间可以自由使用空格,在某些情况下,两个边界否则无法区分的元素之间至少必须有一个空格。

<CA2>            ::= TELNET Go Ahead character
<CA>             ::= TELNET new line (CR LF)
<CRLF>           ::= CR LF
<accesstypes>    ::= <readaccess> <controlaccess>
<ackcondition>   ::= A[LWAYS] | F[AILURE] | N[EVER]
<acktype>        ::= T[ERSE] | V[ERBOSE]
<action>         ::= A[CTION] | null
<catalog>        ::= <string>
<citationcomp>   ::= D[ISTRIBUTION]L[IST] | A[CESS]L[IST] |
                     C[ATALOG]L[IST] | C[ON]T[ENT] |  T[ITLE] |
                     C[OM]M[ENTS] | AU[THOR] | CL[ERK] |
                     C[REATION]D[ATE]
<citationtemp>   ::= <citationcomp> | <citationcomp>
                     <citationtemp>
<command>        ::= <shortbody> <CA> | <longbody> <CA2>
<comments>       ::= <string>
<controlaccess>  ::= C[ONTROLLING] | null
<count>          ::= decimal integer
<date>           ::= <dayofmonth> / <month> / <year>
<datetime>       ::= <date> <time>
<dayofmonth>     ::= decimal integer, 1-31
<days>           ::= <count> D[AYS]
<deliverystatus> ::= F[AILED] | S[UCCESSFUL] | T[IMED OUT] |
                     W[AITING] | U[NATTEMPTED]
<deliverytype>   ::= F[ORWARD] | M[AIL] | N[EGATIVE
                     ACKNOWLEDGMENT] | P[OSITIVE
                     ACKNOWLEDGMENT] | P[ROGRESS]R[EPORT]
                     | R[EPLY]
<disposition>    ::= <rsvp> <action> <interrupt>
<fileaddr>       ::= <host> <pathname>
<functionlist>   ::= <functiontype> | <functiontype>
                     <functionlist>
<functiontype>   ::= RE[CORDING] | DE[LIVERY] | DI[STRIBUTION] |
                     F[OR]W[ARDING] | CI[TATION RETEiEVAL] |
                     UP[DATE] | U[SER]V[ERIFICATION]
<globalname>     ::= * <nicident>
<greeting>       ::= <string>
<host>           ::= <hostname> | <hostaddress>
<hostaddress>    ::= decimal integer, 0-255
<hostname>       ::= standard host name
<hour>           ::= decimal integer, 0-23
<hours>          ::= <count> H[OURS]
<individual>     ::= <localname> | <globalname>
<interrupt>      ::= I[NTERRUPT] | null
<interval>       ::= <days> | <hours> | <days> <hours>
<localname>      ::= <mailbox> @ <host> | <mailbox> @
   NOTE: Host defaults to that of the server
<longbody>       ::= COM[MENTS] <comments> |
                     TEXT <string>
<mailbox>        ::= <string>
<minute>         ::= decimal integer, 0-59
<month>          ::= decimal integer, 1-12
<nicident>       ::= <string>
<id>             ::= <string>
<pathname>       ::= <string>
<readaccess>     ::= R[EAD] | null
<rsvp>           ::= R[SVP] | null
<serialnumber>   ::= <string>
<shortbody>      ::= ABOR[T] |
                     ACC[ESS] <individual> |
                     ACKC[ONDITION] <ackcondition> |
                     ACKT[YPE] <acktype> |
                     AC[CESS]TY[PES] <accesstypes> |
                     AUTH[OR] <individual> |
                     CAT[ALOG] <catalog> |
                     CLER[K] <individual> |
                     CR[EATION]DA[TE] <datetime> |
                     CUT[OFF] <interval> |
                     C[ITATION]TEM[PLATE] <citationtemp> |
                     DELI[VER] |
                     DE[LIVERY]TY[PE] <delivverytype> |
                     DISP[OSITION] <disposition> |
                     DIST[RIBUTE] |
                     EXIT |
                     FILE |
                     FOR[WARDE]E <individual> |
                     FOR[WARD] |
                     GEN[ERAL]D[ELIVERY] |
                     GREE[TING] <greeting> |
                     ID <ID> |
                     LOC[ATION] <fileaddr> |
                     MAIL |
                     MON[ITOR] <individual> |
                     PATH[NAME] <pathname> |
                     RECI[PIENT] <individual> |
                     REC[ORD] |
                     REQ[UESTO]R <individual> |
                     R[EFERENCE]SER[IAL] <serialnumber> |
                     R[EPORT]INT[ERVAL] <interval> |
                     SERI[AL] <serialnumber> |
                     SIGN[ATURE] <signature> |
                     TITL[E] <title> |
                     UPDA[TE] |
                     UP[DATE]TY[PE] <updatetype> |
                     VER[IFY]
<signature>      ::= <string>
<string>         ::= any non-zero number of visible characters
                     (in particular, CA and CA2 are excluded)
<time>           ::= <hour> : <minute> <timezone>
<timezone>       ::= EST | EDT | CST | CDT | MST | MDT | PST |
                     PDT | GMT
<title>          ::= <string>
<updatetype>     ::= A[DD] | R[EPLACE] | D[ELETE]
<year>           ::= full year in decimal (e.g., 1973)
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Root 2/98 ]