address

March 26, 2020 Contributors

Name

address — return the address from a header

Synopsis

address { header_element } { string }

Description

This function implements the standard "address" Sieve test; it parses addresses out of the header you request and tests against them. For more information see “Sieve’s Basic Syntax”.

if address ["From", "To"] "lemon@test.messagesystems.com" {
    ec_log "lemon";
} else {
    ec_log "not-lemon";
}

This function returns the first matching address as a string value. When using the test form of address, with a comparator or regex, it will match against all addresses. See also “Sieve’s Basic Syntax”.

See Also

envelope