sieve_notify_mailto_envelope_from
| Default | [None] | 
|---|---|
| Value | string | 
| See Also | 
Defines the source of the notification sender address for e-mail notifications.
The Sieve enotify extension (RFC 5435) adds the notify action to the Sieve language.
sieve_notify_mailto_envelope_from| Default | [None] | 
|---|---|
| Value | string | 
| See Also | 
Defines the source of the notification sender address for e-mail notifications.
require ["enotify", "fileinto", "variables"];
if header :contains "from" "boss@example.org" {
    notify :importance "1"
        :message "This is probably very important"
        "mailto:alm@example.com";
    # Don't send any further notifications
    stop;
}
if header :contains "to" "sievemailinglist@example.org" {
    # :matches is used to get the value of the Subject header
    if header :matches "Subject" "*" {
        set "subject" "${1}";
    }
    # :matches is used to get the value of the From header
    if header :matches "From" "*" {
        set "from" "${1}";
    }
    notify :importance "3"
        :message "[SIEVE] ${from}: ${subject}"
        "mailto:alm@example.com";
    fileinto "INBOX.sieve";
}require ["enotify", "fileinto", "variables", "envelope"];
if header :matches "from" "*@*.example.org" {
    # :matches is used to get the MAIL FROM address
    if envelope :all :matches "from" "*" {
        set "env_from" " [really: ${1}]";
    }
    # :matches is used to get the value of the Subject header
    if header :matches "Subject" "*" {
        set "subject" "${1}";
    }
    # :matches is used to get the address from the From header
    if address :matches :all "from" "*" {
        set "from_addr" "${1}";
    }
    notify :message "${from_addr}${env_from}: ${subject}"
        "mailto:alm@example.com";
}