git subrepo clone https://github.com/mailcow/mailcow-dockerized.git mailcow/src/mailcow-dockerized
subrepo: subdir: "mailcow/src/mailcow-dockerized"
merged: "a832becb"
upstream: origin: "https://github.com/mailcow/mailcow-dockerized.git"
branch: "master"
commit: "a832becb"
git-subrepo: version: "0.4.3"
origin: "???"
commit: "???"
Change-Id: If5be2d621a211e164c9b6577adaa7884449f16b5
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_1.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_1.yml
new file mode 100644
index 0000000..e7fa8c8
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_1.yml
@@ -0,0 +1,10 @@
+headline: lang.sieve_preset_1
+content: |
+ require ["reject","body","regex"];
+ if anyof (body :raw :regex ["filename=.*\.doc","filename=.*\.exe","filename=.*\.moo"]) {
+ reject text:
+ doc, exe and moo are dangerous file extensions.
+ Why would you do that? I am a sad cow.
+ .
+ ;
+ }
\ No newline at end of file
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_2.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_2.yml
new file mode 100644
index 0000000..1dafec1
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_2.yml
@@ -0,0 +1,7 @@
+headline: lang.sieve_preset_2
+content: |
+ require ["envelope", "imap4flags"];
+ if envelope "from" "mark@me-read.com"
+ {
+ setflag "\\seen";
+ }
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_3.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_3.yml
new file mode 100644
index 0000000..92f0e10
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_3.yml
@@ -0,0 +1,3 @@
+headline: lang.sieve_preset_3
+content: |
+ discard; stop;
\ No newline at end of file
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_4.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_4.yml
new file mode 100644
index 0000000..38c7b5f
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_4.yml
@@ -0,0 +1,4 @@
+headline: lang.sieve_preset_4
+content: |
+ require "fileinto";
+ fileinto "INBOX"; stop;
\ No newline at end of file
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_5.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_5.yml
new file mode 100644
index 0000000..adef757
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_5.yml
@@ -0,0 +1,16 @@
+headline: lang.sieve_preset_5
+content: |
+ require "vacation-seconds";
+ if true
+ {
+ # Only send once a day:
+ # vacation :seconds 86400 text:
+ # Only send once every 300 seconds:
+ # vacation :seconds 300 text:
+ # Else:
+ vacation text:
+ I am on holidays, yay!
+ Mail me later, alligator.
+ .
+ ;
+ }
\ No newline at end of file
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_6.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_6.yml
new file mode 100644
index 0000000..38eaa7c
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_6.yml
@@ -0,0 +1,10 @@
+headline: lang.sieve_preset_6
+content: |
+ require ["reject"];
+ # Rejects are sent from postmaster@mailcow_hostname, make sure DMARC/SPF are fine
+ # You should prefer rejects via mailcow blacklists
+ reject text:
+ I am not taking mail from you, and I don't
+ want your birdseed, either!
+ .
+ ;
\ No newline at end of file
diff --git a/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_7.yml b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_7.yml
new file mode 100644
index 0000000..6f405e9
--- /dev/null
+++ b/mailcow/src/mailcow-dockerized/data/web/inc/presets/sieve/sieve_7.yml
@@ -0,0 +1,7 @@
+headline: lang.sieve_preset_7
+content: |
+ redirect "other-address@domain.tld";
+ # Either keep after redirecting:
+ # keep;
+ # Or redirect and drop:
+ discard; stop;
\ No newline at end of file