summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-03-20 11:48:08 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-03-20 12:20:54 +0300
commit2974e4ecd1e3731204819f9bd257a92bb3ac2969 (patch)
tree64234e8505c86ff1eccdf4f02753e24386563aae /rules
parent1ed9e301ea0eacbd8304e6738aba5d5b121997df (diff)
downloadrspamd-2974e4ecd1e3731204819f9bd257a92bb3ac2969.tar.gz
rspamd-2974e4ecd1e3731204819f9bd257a92bb3ac2969.zip
[Minor] Catch upstream `X-Spam` flag as well with `SPAM_FLAG` regexp
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/upstream_spam_filters.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/upstream_spam_filters.lua b/rules/regexp/upstream_spam_filters.lua
index fbb41db5d..dc0f14bcd 100644
--- a/rules/regexp/upstream_spam_filters.lua
+++ b/rules/regexp/upstream_spam_filters.lua
@@ -41,7 +41,7 @@ reconf['AOL_SPAM'] = {
}
reconf['SPAM_FLAG'] = {
- re = 'X-Spam-Flag=/^(?:yes|true)/Hi',
+ re = string.format('%s || %s', 'X-Spam-Flag=/^(?:yes|true)/Hi', 'X-Spam=/^yes$/Hi'),
score = 5,
description = "Message was already marked as spam",
group = 'upstream_spam_filters'