]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove redundant metric name
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 5 Apr 2024 16:48:06 +0000 (17:48 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 5 Apr 2024 16:48:06 +0000 (17:48 +0100)
src/plugins/lua/greylist.lua

index b69e909f61b33bc0ebb809cc470cbfedd5dc9ee5..540b92fe6efef1651fa681d0059eec2214993d00 100644 (file)
@@ -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