Enum vsmtp_common::status::Status
pub enum Status {
Accept(Reply),
Next,
Deny(Reply),
Faccept(Reply),
Quarantine(String),
Delegated(SmtpConnection),
DelegationResult,
}Expand description
Status of the mail context treated by the rule engine.
Variants§
Accept(Reply)
accepts the current stage value, skips all rules in the stage.
Next
continue to the next rule / stage.
Deny(Reply)
immediately stops the transaction and send an error code.
Faccept(Reply)
ignore all future rules for the transaction.
Quarantine(String)
ignore all future rules for the transaction. the String parameter is the path to the quarantine folder. this status disable delivery to all recipients.
Delegated(SmtpConnection)
the email as been delegated to another service.
DelegationResult
the rule engine must skip all rules until a given rule received in the email’s header.
Implementations§
§impl Status
impl Status
pub const fn is_finished(&self) -> bool
pub const fn is_finished(&self) -> bool
Should the evaluation of the rules finish ?
Trait Implementations§
§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more