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