Skip to main content

Module types

Module types 

Source
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.
FieldValues
Extracted field values from a message for condition evaluation.
FilterRule
A complete filter rule: conditions + actions + metadata.
MailEnvelope
A simple envelope of the fields a filter engine needs.
Notify
Configuration for the notify action (RFC 5436).
Vacation
Configuration for the vacation action (RFC 5230).

Enums§

Action
An action to perform when a rule matches.
AddressPart
Which portion of an address an envelope test compares (RFC 5228 §5.1 :all / :localpart / :domain).
ConditionField
Message fields that conditions can target.
EnvelopePart
Which SMTP envelope value an envelope test 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. mailto is 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.