Skip to main content


address — return the address from a header


address { header_element } { string }


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"] "" {
    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

Was this page helpful?