[Web] Add more sieve presets
This commit is contained in:
@@ -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.
|
||||
.
|
||||
;
|
||||
}
|
Reference in New Issue
Block a user