Skip to content
Snippets Groups Projects
Commit 38c7515b authored by Jesse Norell's avatar Jesse Norell
Browse files

sieve: case insensitive move to junk test matched 'BAYES' for 'Yes'

parent f9c22b42
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap ...@@ -7,7 +7,7 @@ require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap
<tmpl_if name="move_junk" op="==" value="y"> <tmpl_if name="move_junk" op="==" value="y">
# Move spam to spam folder # Move spam to spam folder
if anyof (header :contains "X-Spam-Flag" "YES", header :contains ["X-Spam", "X-Spam-Status"] "Yes") { if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
fileinto :create "Junk"; fileinto :create "Junk";
# Stop here so that we do not reply on spams # Stop here so that we do not reply on spams
stop; stop;
...@@ -33,7 +33,7 @@ require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap ...@@ -33,7 +33,7 @@ require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap
<tmpl_if name="move_junk" op="==" value="a"> <tmpl_if name="move_junk" op="==" value="a">
# Move spam to spam folder # Move spam to spam folder
if anyof (header :contains "X-Spam-Flag" "YES", header :contains ["X-Spam", "X-Spam-Status"] "Yes") { if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
fileinto :create "Junk"; fileinto :create "Junk";
# Stop here so that we do not reply on spams # Stop here so that we do not reply on spams
stop; stop;
...@@ -46,7 +46,7 @@ if anyof (header :contains "X-Spam-Flag" "YES", header :contains ["X-Spam", "X-S ...@@ -46,7 +46,7 @@ if anyof (header :contains "X-Spam-Flag" "YES", header :contains ["X-Spam", "X-S
################################################################# #################################################################
# Move spam to spam folder # Move spam to spam folder
if anyof (header :contains "X-Spam-Flag" "YES", header :contains ["X-Spam", "X-Spam-Status"] "Yes") { if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
# Stop here so that we do not reply on spams # Stop here so that we do not reply on spams
stop; stop;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment