Expand description
Filter rule types: conditions, operators, actions, and the composite rule
structure. These types are domain-only (no storage/async dependencies) so
they can be evaluated synchronously against any Filterable message.
Structs§
- Condition
- A single condition clause.
- Field
Values - Extracted field values from a message for condition evaluation.
- Filter
Rule - A complete filter rule: conditions + actions + metadata.
- Mail
Envelope - A simple envelope of the fields a filter engine needs.
- Notify
- Configuration for the
notifyaction (RFC 5436). - Vacation
- Configuration for the
vacationaction (RFC 5230).
Enums§
- Action
- An action to perform when a rule matches.
- Address
Part - Which portion of an address an
envelopetest compares (RFC 5228 §5.1:all/:localpart/:domain). - Condition
Field - Message fields that conditions can target.
- Envelope
Part - Which SMTP envelope value an
envelopetest reads (RFC 5228 §5.1 string-list"from"/"to"). - Flag
- An IMAP message flag.
- LogicOp
- Boolean combinator for conditions.
- Operator
- Comparison operators.
Constants§
- KNOWN_
NOTIFY_ SCHEMES - URI schemes recognized as notification methods during evaluation.
mailtois defined by RFC 5436; the others are common extension schemes. Unknown schemes still parse — evaluation just warns.
Traits§
- Filterable
- The fields a filter engine needs from a message.