diff options
author | Hugues Hiegel <root@paranoid> | 2015-02-22 12:58:46 +0100 |
---|---|---|
committer | Hugues Hiegel <root@paranoid> | 2015-02-22 12:58:46 +0100 |
commit | b2034fdfec040a67988e543a911208ef2491ce7a (patch) | |
tree | f970dfabc63f59adac7b948cb0211d6ae926d29f /managesieve/tests/src/parser_notify_a |
New RoundCube Plugins Git folder
Diffstat (limited to 'managesieve/tests/src/parser_notify_a')
-rw-r--r-- | managesieve/tests/src/parser_notify_a | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/managesieve/tests/src/parser_notify_a b/managesieve/tests/src/parser_notify_a new file mode 100644 index 0000000..e51e2aa --- /dev/null +++ b/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 :method "mailto" :options "test@example.org" :message "${from}: ${subject}"; +} |