summaryrefslogtreecommitdiffstats
path: root/server/setup/05-service-settings/var/lib/dovecot/sieve/prologue.sieve
diff options
context:
space:
mode:
Diffstat (limited to 'server/setup/05-service-settings/var/lib/dovecot/sieve/prologue.sieve')
-rw-r--r--server/setup/05-service-settings/var/lib/dovecot/sieve/prologue.sieve11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/setup/05-service-settings/var/lib/dovecot/sieve/prologue.sieve b/server/setup/05-service-settings/var/lib/dovecot/sieve/prologue.sieve
new file mode 100644
index 0000000..c66db85
--- /dev/null
+++ b/server/setup/05-service-settings/var/lib/dovecot/sieve/prologue.sieve
@@ -0,0 +1,11 @@
+require ["copy", "fileinto", "mailbox"];
+
+#
+# Spam First
+#
+if header :matches "X-Bogosity" "Spam*" {
+ fileinto :create "0-Spam";
+} elsif header :matches "X-Bogosity" "Unsure*" {
+ fileinto :create :copy "0-Spam-unsure-copy";
+}
+