aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorReio Remma <reio@mrstuudio.ee>2019-10-16 23:41:39 +0300
committerReio Remma <reio@mrstuudio.ee>2019-10-16 23:41:39 +0300
commita4e68122abcb9d9dbbf676d252790f62bae1246f (patch)
tree855af07a6f1f0162237a08cce6556c75f16a4db8 /src/plugins
parentb546fa0ace3518c9ec41f06ea776281620ffab0d (diff)
downloadrspamd-a4e68122abcb9d9dbbf676d252790f62bae1246f.tar.gz
rspamd-a4e68122abcb9d9dbbf676d252790f62bae1246f.zip
Fix maillist checks to catch Google Groups which don't have List-Subscribe header.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/maillist.lua4
1 files changed, 3 insertions, 1 deletions
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