Skip to main content

evaluate_condition

Function evaluate_condition 

Source
pub fn evaluate_condition<F: Filterable + ?Sized>(
    condition: &Condition,
    msg: &F,
    regex_cache: &RegexCache,
) -> bool
Expand description

Evaluate a single condition against a message.

Envelope conditions (RFC 5228 §5.1) evaluate as non-matching when the message supplies no envelope data; :localpart/:domain select the portion of the address compared.

§Panics

Never panics.