From: Jean-Louis Dupond Date: Mon, 3 Jan 2022 12:42:49 +0000 (+0100) Subject: [Minor] Add no soft reject selector for metadata exporter X-Git-Tag: 3.2~130^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4031%2Fhead;p=rspamd.git [Minor] Add no soft reject selector for metadata exporter I think its quite common to not export soft rejects via the metadata exporter. Because when its not spam, the sender will most likely try to redeliver it again anyway. --- diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index b6ad3363d..118d3eda1 100644 --- a/src/plugins/lua/metadata_exporter.lua +++ b/src/plugins/lua/metadata_exporter.lua @@ -245,6 +245,10 @@ local selectors = { local action = task:get_metric_action('default') return (action == 'reject') end, + is_not_soft_reject = function(task) + local action = task:get_metric_action('default') + return (action ~= 'soft reject') + end, } local function maybe_defer(task, rule)