From 5cdb5cd3dcb33bab801328ed8073c858c16a120a Mon Sep 17 00:00:00 2001 From: Jean-Louis Dupond Date: Mon, 3 Jan 2022 13:42:49 +0100 Subject: [PATCH] [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. --- src/plugins/lua/metadata_exporter.lua | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.5