summaryrefslogtreecommitdiff
path: root/webmail/plugins/managesieve/tests/src/parser_notify_b
diff options
context:
space:
mode:
authorTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
committerTristan Zur <tzur@web.web.ccwn.org>2014-03-27 22:27:47 +0100
commitb62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch)
tree86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /webmail/plugins/managesieve/tests/src/parser_notify_b
Initial commit of intern.ccwn.org contentsHEADmaster
Diffstat (limited to 'webmail/plugins/managesieve/tests/src/parser_notify_b')
-rw-r--r--webmail/plugins/managesieve/tests/src/parser_notify_b17
1 files changed, 17 insertions, 0 deletions
diff --git a/webmail/plugins/managesieve/tests/src/parser_notify_b b/webmail/plugins/managesieve/tests/src/parser_notify_b
new file mode 100644
index 0000000..cf80a97
--- /dev/null
+++ b/webmail/plugins/managesieve/tests/src/parser_notify_b
@@ -0,0 +1,17 @@
+require ["envelope","variables","notify"];
+# rule:[from]
+if envelope :all :matches "from" "*"
+{
+ set "env_from" " [really: ${1}]";
+}
+# rule:[subject]
+if header :matches "Subject" "*"
+{
+ set "subject" "${1}";
+}
+# rule:[from notify]
+if address :all :matches "from" "*"
+{
+ set "from_addr" "${1}";
+ notify :message "${from_addr}${env_from}: ${subject}" :method "sms:1234567890";
+}