]> source.dussan.org Git - rspamd.git/commitdiff
Fix maillist checks to catch Google Groups which don't have List-Subscribe header. 3094/head
authorReio Remma <reio@mrstuudio.ee>
Wed, 16 Oct 2019 20:41:39 +0000 (23:41 +0300)
committerReio Remma <reio@mrstuudio.ee>
Wed, 16 Oct 2019 20:41:39 +0000 (23:41 +0300)
src/plugins/lua/maillist.lua

index 54d46a79c4ecf673871703bb6b7e0c3c23606a0b..005909a02a8cf0577139458f5d0d7f98ce565b03 100644 (file)
@@ -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