]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Catch upstream `X-Spam` flag as well with `SPAM_FLAG` regexp
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 20 Mar 2018 08:48:08 +0000 (11:48 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 20 Mar 2018 09:20:54 +0000 (12:20 +0300)
rules/regexp/upstream_spam_filters.lua

index fbb41db5d694d996ca949076b7630e24df7c835a..dc0f14bcdc1ba35a4cf40fe9b43b08342bae3b61 100644 (file)
@@ -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'