From: Reio Remma Date: Wed, 16 Oct 2019 20:41:39 +0000 (+0300) Subject: Fix maillist checks to catch Google Groups which don't have List-Subscribe header. X-Git-Tag: 2.1~85^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3094%2Fhead;p=rspamd.git Fix maillist checks to catch Google Groups which don't have List-Subscribe header. --- diff --git a/src/plugins/lua/maillist.lua b/src/plugins/lua/maillist.lua index 54d46a79c..005909a02 100644 --- a/src/plugins/lua/maillist.lua +++ b/src/plugins/lua/maillist.lua @@ -256,7 +256,9 @@ local function check_generic_list_headers(task) if has_subscribe and has_unsubscribe then score = score + 0.25 - elseif (has_subscribe or has_unsubscribe) then + elseif (has_unsubscribe) then + score = score - 0.25 + elseif (has_subscribe) then score = score - 0.75 end