From 691ec14cc2c40a5fb891d01de4358a3275722ad4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 7 May 2022 14:40:58 +0100 Subject: [PATCH] [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 81e046928c..c639dc2dc1 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 -- 2.47.3