From cce3e3afdec603353f1d8b45d23c5f1618fdfcf0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 11 Sep 2022 20:04:38 +0100 Subject: [PATCH] [Minor] Add augmentation for aws_s3 plugin --- src/plugins/lua/aws_s3.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/aws_s3.lua b/src/plugins/lua/aws_s3.lua index bd53dac50..60981df9e 100644 --- a/src/plugins/lua/aws_s3.lua +++ b/src/plugins/lua/aws_s3.lua @@ -257,10 +257,13 @@ if not settings.upstreams then return end +local is_postfilter = settings.fail_action ~= nil + rspamd_config:register_symbol({ name = 'EXPORT_AWS_S3', - type = settings.fail_action and 'postfilter' or 'idempotent', + type = is_postfilter and 'postfilter' or 'idempotent', callback = s3_aws_callback, - priority = settings.fail_action and lua_util.symbols_priorities.high or nil, + augmentations = {string.format("timeout=%f", settings.s3_timeout)}, + priority = is_postfilter and lua_util.symbols_priorities.high or nil, flags = 'empty,explicit_disable,ignore_passthrough,nostat', }) \ No newline at end of file -- 2.39.5