diff options
Diffstat (limited to 'webmail/plugins/managesieve/tests/src/parser_notify_a')
| -rw-r--r-- | webmail/plugins/managesieve/tests/src/parser_notify_a | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/webmail/plugins/managesieve/tests/src/parser_notify_a b/webmail/plugins/managesieve/tests/src/parser_notify_a new file mode 100644 index 0000000..f1a5754 --- /dev/null +++ b/webmail/plugins/managesieve/tests/src/parser_notify_a @@ -0,0 +1,18 @@ +require ["notify","variables"]; +# rule:[notify1] +if header :contains "from" "boss@example.org" +{ + notify :low :message "This is probably very important"; + stop; +} +# rule:[subject] +if header :matches "Subject" "*" +{ + set "subject" "${1}"; +} +# rule:[from notify2] +if header :matches "From" "*" +{ + set "from" "${1}"; + notify :high :message "${from}: ${subject}" :method "mailto:test@example.org"; +} |
