summaryrefslogtreecommitdiff
path: root/webmail/plugins/managesieve/tests/src/parser_notify_a
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_a
Initial commit of intern.ccwn.org contentsHEADmaster
Diffstat (limited to 'webmail/plugins/managesieve/tests/src/parser_notify_a')
-rw-r--r--webmail/plugins/managesieve/tests/src/parser_notify_a18
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";
+}