[UI] Corrected Sieve Preset 1 (Fixed Regex)
This commit is contained in:
parent
8a8687a63c
commit
58f63aad08
@ -1,7 +1,7 @@
|
|||||||
headline: lang.sieve_preset_1
|
headline: lang.sieve_preset_1
|
||||||
content: |
|
content: |
|
||||||
require ["reject","body","regex"];
|
require ["reject","body","regex"];
|
||||||
if anyof (body :raw :regex ["filename=.*\.doc","filename=.*\.exe","filename=.*\.moo"]) {
|
if anyof (body :raw :regex ["filename=\".*\\.(doc|exe|moo)\""]) {
|
||||||
reject text:
|
reject text:
|
||||||
doc, exe and moo are dangerous file extensions.
|
doc, exe and moo are dangerous file extensions.
|
||||||
Why would you do that? I am a sad cow.
|
Why would you do that? I am a sad cow.
|
||||||
|
Loading…
Reference in New Issue
Block a user