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_b |
New RoundCube Plugins Git folder
Diffstat (limited to 'managesieve/tests/src/parser_notify_b')
-rw-r--r-- | managesieve/tests/src/parser_notify_b | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/managesieve/tests/src/parser_notify_b b/managesieve/tests/src/parser_notify_b new file mode 100644 index 0000000..f942e15 --- /dev/null +++ b/managesieve/tests/src/parser_notify_b @@ -0,0 +1,17 @@ +require ["envelope","notify","variables"]; +# rule:[from] +if envelope :matches "from" "*" +{ + set "env_from" " [really: ${1}]"; +} +# rule:[subject] +if header :matches "Subject" "*" +{ + set "subject" "${1}"; +} +# rule:[from notify] +if address :matches "from" "*" +{ + set "from_addr" "${1}"; + notify :method "sms" :options "1234567890" :message "${from_addr}${env_from}: ${subject}"; +} |