Skip to main content

Module mail_rules

Module mail_rules 

Source
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§

InboundMessage
An inbound message presented to the rules engine for a delivery decision.
MailVerdict
The outcome of evaluating MailRules against an InboundMessage.

Functions§

evaluate
Evaluate rules against msg and produce a MailVerdict.
retention_cutoff_unix
Compute the retention cutoff (unix seconds) for a message received at received_unix.