summaryrefslogtreecommitdiff
path: root/files/sieve
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-12-06 23:02:23 +0100
committermh <mh@immerda.ch>2009-12-06 23:02:23 +0100
commit0d1a1fdb690cd88496776f1571416e468a51ce71 (patch)
tree9aa1baa428492f67afcf4a02d018fc3d466f961e /files/sieve
parentc2b7e2af0438975e8b8b4c8d2532c383a8125e3f (diff)
initial release of the new dovecot module
Diffstat (limited to 'files/sieve')
-rw-r--r--files/sieve/default.sieve16
1 files changed, 16 insertions, 0 deletions
diff --git a/files/sieve/default.sieve b/files/sieve/default.sieve
new file mode 100644
index 0000000..c63a86e
--- /dev/null
+++ b/files/sieve/default.sieve
@@ -0,0 +1,16 @@
+##### We will 'require' necessary modules first.
+# Comments can be C-style or bash/perl/python style
+
+require [ "fileinto" ];
+
+
+##### Filter the spam into your spam folder. This is done
+# on the global sieve script by default IF you don't have
+# a .dovecot.sieve file. When you create your sieve script,
+# the global one will be disabled so you have to filter
+# the spam in your own script.
+if header :is "X-Spam-Flag" "YES" {
+ fileinto "spam";
+ stop; #---- this stops further processing;
+ #prevents sending replies and/or redirecting(forwarding)
+}