From: Vsevolod Stakhov Date: Sun, 11 Sep 2022 19:04:38 +0000 (+0100) Subject: [Minor] Add augmentation for aws_s3 plugin X-Git-Tag: 3.3~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cce3e3afdec603353f1d8b45d23c5f1618fdfcf0;p=thirdparty%2Frspamd.git [Minor] Add augmentation for aws_s3 plugin --- diff --git a/src/plugins/lua/aws_s3.lua b/src/plugins/lua/aws_s3.lua index bd53dac50d..60981df9e8 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