diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-04-05 17:56:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-04-05 17:56:15 +0100 |
commit | b2ba70cf7a187b429c613eee54251983516d9051 (patch) | |
tree | e1008cafb58ca4950b3595e05c37cf9919cdf751 /src/plugins | |
parent | 2715f2453644bf833f5f33e33ad92dbb2e276270 (diff) | |
download | rspamd-b2ba70cf7a187b429c613eee54251983516d9051.tar.gz rspamd-b2ba70cf7a187b429c613eee54251983516d9051.zip |
[Fix] Honor dynamic thresholds for greylisting module
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/greylist.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 540b92fe6..e4a633233 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -330,7 +330,7 @@ local function greylist_set(task) end -- 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') + local greylist_min_score = settings.greylist_min_score or task:get_metric_threshold('greylist') if greylist_min_score then local score = task:get_metric_score()[1] if score < greylist_min_score then |