commit 691ec14: [Minor] Maillist: Fix checks logic

Vsevolod Stakhov vsevolod at rspamd.com
Sat May 7 13:42:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-05-07 14:40:58 +0100
URL: https://github.com/rspamd/rspamd/commit/691ec14cc2c40a5fb891d01de4358a3275722ad4 (HEAD -> master)

[Minor] Maillist: Fix checks logic

---
 src/plugins/lua/maillist.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/maillist.lua b/src/plugins/lua/maillist.lua
index 81e046928..c639dc2dc 100644
--- a/src/plugins/lua/maillist.lua
+++ b/src/plugins/lua/maillist.lua
@@ -221,7 +221,7 @@ local function check_generic_list_headers(task)
         lua_util.debugm(N, task, 'has %s header, score = %s', hname, score)
       else
         local score_change = hscore()
-        if score then
+        if score and score_change then
           score = score + score_change
           lua_util.debugm(N, task, 'has %s header, score = %s', hname, score)
         end


More information about the Commits mailing list