Module smtp_codec::parse::command[][src]

Functions

A_d_l

A-d-l = At-domain *( "," At-domain ) ; Note that this form, the so-called "source ; route", MUST BE accepted, SHOULD NOT be ; generated, and SHOULD be ignored.

Argument

Argument = Atom

At_domain

At-domain = "@" Domain

Atom

Atom = 1*atext

Domain

Domain = sub-domain *("." sub-domain)

Dot_string

Dot-string = Atom *("." Atom)

Forward_path

Forward-path = Path

Keyword

Keyword = Ldh-str

Ldh_str

Ldh-str = *( ALPHA / DIGIT / "-" ) Let-dig

Local_part

Local-part = Dot-string / Quoted-string ; MAY be case-sensitive

Mail_parameters

Mail-parameters = esmtp-param *(SP esmtp-param)

Mailbox

Mailbox = Local-part "@" ( Domain / address-literal )

Path
QcontentSMTP

QcontentSMTP = qtextSMTP / quoted-pairSMTP

Quoted_string

Quoted-string = DQUOTE *QcontentSMTP DQUOTE

Rcpt_parameters

Rcpt-parameters = esmtp-param *(SP esmtp-param)

Reverse_path

Reverse-path = Path / "<>"

String

String = Atom / Quoted-string

address_literal

address-literal = "[" ( IPv4-address-literal / IPv6-address-literal / General-address-literal ) "]" ; See Section 4.1.3

auth_login

https://interoperability.blob.core.windows.net/files/MS-XLOGIN/[MS-XLOGIN].pdf

auth_plain
command
data

data = "DATA" CRLF

ehlo

ehlo = "EHLO" SP ( Domain / address-literal ) CRLF

esmtp_keyword

esmtp-keyword = (ALPHA / DIGIT) *(ALPHA / DIGIT / "-")

esmtp_param

esmtp-param = esmtp-keyword ["=" esmtp-value]

esmtp_value

Any CHAR excluding "=", SP, and control characters. If this string is an email address, i.e., a Mailbox, then the "xtext" syntax [32] SHOULD be used.

expn

expn = "EXPN" SP String CRLF

helo

helo = "HELO" SP Domain CRLF

help

help = "HELP" [ SP String ] CRLF

is_Let_dig

Let-dig = ALPHA / DIGIT

is_qtextSMTP

Within a quoted string, any ASCII graphic or space is permitted without blackslash-quoting except double-quote and the backslash itself.

mail

mail = "MAIL FROM:" Reverse-path [SP Mail-parameters] CRLF

noop

noop = "NOOP" [ SP String ] CRLF

quit

quit = "QUIT" CRLF

quoted_pairSMTP

Backslash followed by any ASCII graphic (including itself) or SPace

rcpt

rcpt = "RCPT TO:" ( "<Postmaster@" Domain ">" / "" / Forward-path ) [SP Rcpt-parameters] CRLF

rset

rset = "RSET" CRLF

starttls
sub_domain

sub-domain = Let-dig [Ldh-str]

vrfy

vrfy = "VRFY" SP String CRLF