mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
email: Narrowly match just rspamd's spam header
There is no need to match generically for flags that are possibly generated by other spam software. Allow other rules to run after filing into Junk folder. Allow other sieve filter to be present in the FreedomBox configuration directory. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
d47d39a8dd
commit
9710369949
@ -1,2 +0,0 @@
|
||||
DO NOT PUT PERSONAL ITEMS HERE!
|
||||
This folder in its entirety is managed by FreedomBox.
|
||||
@ -1,8 +1,5 @@
|
||||
require ["fileinto", "mailbox"];
|
||||
|
||||
if anyof(header :contains "X-Spam" "Yes",
|
||||
header :contains "X-Spam-Status" "Yes",
|
||||
header :matches "X-Spam-Flag" "YES") {
|
||||
if header :is "X-Spam" "Yes" {
|
||||
fileinto :create "Junk";
|
||||
stop;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user