aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNishil Shah <nshah@nightwatchapp.com>2023-02-28 18:05:42 -0800
committerNishil Shah <nshah@nightwatchapp.com>2023-02-28 18:05:42 -0800
commit4f127cf8dce3a329deea7ba18bc754a6ab4a22b6 (patch)
treed45dc8ec08d018d0bf8b613b58074d58be962f6b
parent057ee1ae4e3df54e91c146e4adceac34e8c729ef (diff)
downloadrspamd-4f127cf8dce3a329deea7ba18bc754a6ab4a22b6.tar.gz
rspamd-4f127cf8dce3a329deea7ba18bc754a6ab4a22b6.zip
when metric action is not defined, it reads a score causing a type error where the value should be a string and the actual action
-rw-r--r--src/plugins/lua/milter_headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua
index 1c35f89b4..02f50be27 100644
--- a/src/plugins/lua/milter_headers.lua
+++ b/src/plugins/lua/milter_headers.lua
@@ -360,7 +360,7 @@ local function milter_headers(task)
local local_mod = settings.routines['x-rspamd-action']
if skip_wanted('x-rspamd-action') then return end
if not common['metric_action'] then
- common['metric_action'] = task:get_metric_score()
+ common['metric_action'] = task:get_metric_action()
end
local action = common['metric_action']
if local_mod.remove then