Expand description
Action definitions and execution helpers. Actions are value types that describe what to do; the host application translates them into its own mail operations. Evaluation and planning here are pure: no I/O.
Structs§
- Filter
Match - The result of evaluating a rule: which message and what actions to apply.
- Vacation
Reply - An evaluated automated reply (RFC 5230
vacation), ready for the host’s SMTP layer. The engine computes routing and defaults; the host sends it and tracks the respond period (seeVacationTracker). - Vacation
Tracker - In-memory ledger for vacation respond-once-per-sender-per-period
semantics (RFC 5230). Record a reply when one is sent; query with
seen_beforeto decide whether another is due. Thread-safe; usable directly as anEvalContext::seen_beforepredicate.
Enums§
- Planned
Action - A single planned action ready for execution by the host application.
Functions§
- apply_
flag_ plan - Fold flag mutations (RFC 5232
addflag/removeflag/setflag) onto a current flag set, in plan order.AddFlagsappends without duplicates,RemoveFlagsdrops every listed flag,SetFlagsreplaces the set.MarkReadis a host-level concern and is ignored here. Keywords compare exactly (hosts may normalize case). - build_
action_ plan - Translate a list of actions into a plan that the host can execute.
- collect_
matches - Collect the actions from the first rule matching a message (in the given
rule order — use
sort_rules_by_priorityto order by priority first).