Crate smtp_message
source · [−]Re-exports
pub use nom;Modules
Structs
Helper struct to unescape a data stream.
AsyncRead instance that returns an unescaped DATA stream.
AsyncWrite instance that takes an unescaped DATA stream and
escapes it.
Note: This struct includes the leading ’ ’
Note: for convenience this is not exactly like what is described by RFC5321, and it does not contain the Email. Indeed, paths are very rare nowadays.
Enums
Note: comparison happens only on the raw field, meaning that if you modify
or create a Hostname yourself it could have surprising results. But such a
Hostname would then not actually represent a real hostname, so you
probably would have had surprising results anyway.
Functions
Returns the index of the \n in the first \r\n of buf, or None if
there was none yet. This will update state, the first call
should pass in NextCrLfState::Start, and subsequent calls (until
a non-None value is found) should just keep using the same
reference.