commit 48a5ca7: Merge pull request #3093 from whataboutpereira/maillist-typo
GitHub
noreply at github.com
Wed Oct 16 22:56:09 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-16 23:50:00 +0100
URL: https://github.com/rspamd/rspamd/commit/48a5ca7978fd5f0490f429fbddd28fd87f9976b1 (HEAD -> master)
Merge pull request #3093 from whataboutpereira/maillist-typo
List-Unsubscribe debug message typo fix.
src/plugins/lua/maillist.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --combined src/plugins/lua/maillist.lua
index 005909a02,b1cf6fd80..252cdd436
--- a/src/plugins/lua/maillist.lua
+++ b/src/plugins/lua/maillist.lua
@@@ -242,7 -242,7 +242,7 @@@ local function check_generic_list_heade
has_subscribe = true
end
if task:get_header_count('list-unsubscribe') == 1 then
- lua_util.debugm(N, task, 'has header List-Subscribe, score = %s',
+ lua_util.debugm(N, task, 'has header List-Unsubscribe, score = %s',
score)
score = score + 0.125
has_unsubscribe = true
@@@ -256,9 -256,7 +256,9 @@@
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
More information about the Commits
mailing list