aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/aws_s3.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/aws_s3.lua')
-rw-r--r--src/plugins/lua/aws_s3.lua7
1 files 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