[Web] Add more sieve presets

This commit is contained in:
andryyy
2019-12-27 22:03:06 +01:00
parent a89df381f8
commit d468ecfa65
8 changed files with 60 additions and 7 deletions

View File

@@ -1,7 +1,10 @@
headline: lang.sieve_preset_1
content: |
if header :contains "x-attached"
[".exe",".bat",".js",".com",".cmd",".ini",".dll",".bas",".cpl",".drv",".inf",".sys",".pif",".doc",".docx"] {
discard;
stop;
}
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.
.
;
}

View File

@@ -0,0 +1,3 @@
headline: lang.sieve_preset_3
content: |
discard; stop;

View File

@@ -0,0 +1,4 @@
headline: lang.sieve_preset_4
content: |
require "fileinto";
fileinto "INBOX"; stop;

View File

@@ -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.
.
;
}

View File

@@ -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!
.
;

View File

@@ -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;