diff options
author | Reio Remma <reio@mrstuudio.ee> | 2019-10-16 23:41:39 +0300 |
---|---|---|
committer | Reio Remma <reio@mrstuudio.ee> | 2019-10-16 23:41:39 +0300 |
commit | a4e68122abcb9d9dbbf676d252790f62bae1246f (patch) | |
tree | 855af07a6f1f0162237a08cce6556c75f16a4db8 /src/plugins | |
parent | b546fa0ace3518c9ec41f06ea776281620ffab0d (diff) | |
download | rspamd-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.lua | 4 |
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 |