Expand description
Mail rules engine — evaluates a mailbox’s MailRules
against an inbound message.
This is a pure decision layer: no filesystem, no network, no clock. Given the rules
configured on an address (a rule-bearing mailbox) and an InboundMessage, it returns a
MailVerdict describing whether the message is delivered, quarantined, or rejected, plus the
priority/notify hints and a human-readable trail of reasons for auditability.
The rules themselves live on crate::domains::MailRules; this module only interprets them.
Structs§
- Inbound
Message - An inbound message presented to the rules engine for a delivery decision.
- Mail
Verdict - The outcome of evaluating
MailRulesagainst anInboundMessage.
Functions§
- evaluate
- Evaluate
rulesagainstmsgand produce aMailVerdict. - retention_
cutoff_ unix - Compute the retention cutoff (unix seconds) for a message received at
received_unix.