aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-04-05 17:48:06 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-04-05 17:48:06 +0100
commit2715f2453644bf833f5f33e33ad92dbb2e276270 (patch)
tree5786d2cfda432453ed863478ac9de2ed74535bfd /src/plugins
parent2edcc63aea5fe4e5a1ffdb44d5b041284d41591e (diff)
downloadrspamd-2715f2453644bf833f5f33e33ad92dbb2e276270.tar.gz
rspamd-2715f2453644bf833f5f33e33ad92dbb2e276270.zip
[Minor] Remove redundant metric name
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/greylist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index b69e909f6..540b92fe6 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -332,7 +332,7 @@ local function greylist_set(task)
-- We need to update this on each scan, as it can vary per settings or be redefined dynamically
local greylist_min_score = settings.greylist_min_score or rspamd_config:get_metric_action('greylist')
if greylist_min_score then
- local score = task:get_metric_score('default')[1]
+ local score = task:get_metric_score()[1]
if score < greylist_min_score then
rspamd_logger.infox(task, 'Score too low - skip greylisting')
if action == 'greylist' then