From a4e68122abcb9d9dbbf676d252790f62bae1246f Mon Sep 17 00:00:00 2001 From: Reio Remma Date: Wed, 16 Oct 2019 23:41:39 +0300 Subject: [PATCH] Fix maillist checks to catch Google Groups which don't have List-Subscribe header. --- src/plugins/lua/maillist.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5