pub fn evaluate(rules: &MailRules, msg: &InboundMessage) -> MailVerdictExpand description
Evaluate rules against msg and produce a MailVerdict.
Decision order:
- If the rules require a verified sender and the sender is not verified, the message is rejected (not delivered) and the function returns early.
- Otherwise the message is delivered. If the rules quarantine incoming mail, it is delivered to quarantine rather than the inbox.
- The
priorityandnotifyhints are carried through from the rules, with reasons recorded for a non-zero priority and for quarantine. - Optional semantic_route (agreement / credential / values id, or a small DSL):
quarantine— force quarantinerequire_verified— same as require_verified_sender for this evaluationpriority:N— override priority- anything else — recorded as audit trail (hook for rights/agreement engines)