Enum vsmtp_protocol::Verb
#[non_exhaustive]
pub enum Verb {
Helo,
Ehlo,
MailFrom,
RcptTo,
Data,
Quit,
Rset,
Help,
Noop,
StartTls,
Auth,
Unknown,
}Expand description
SMTP Command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Helo
Used to identify the SMTP client to the SMTP server. (historical)
Ehlo
Used to identify the SMTP client to the SMTP server and request smtp extensions.
MailFrom
This command is used to initiate a mail transaction in which the mail data is delivered to an SMTP server that may, in turn, deliver it to one or more mailboxes or pass it on to another system (possibly using SMTP).
RcptTo
This command is used to identify an individual recipient of the mail data; multiple recipients are specified by multiple uses of this command.
Data
This command causes the mail data to be appended to the mail data buffer.
Quit
This command specifies that the receiver MUST send a “221 OK” reply, and then close the transmission channel.
Rset
This command specifies that the current mail transaction will be aborted. Any stored sender, recipients, and mail data MUST be discarded, and all buffers and state tables cleared.
Help
This command causes the server to send helpful information to the client. The command MAY take an argument (e.g., any command name) and return more specific information as a response.
Noop
This command does not affect any parameters or previously entered commands.
StartTls
See “Transport Layer Security” https://datatracker.ietf.org/doc/html/rfc3207
Auth
Authentication with SASL protocol https://datatracker.ietf.org/doc/html/rfc4954
Unknown
Any other buffer received while expecting a command is considered an unknown.