diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-09-11 20:04:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-09-11 20:04:38 +0100 |
commit | cce3e3afdec603353f1d8b45d23c5f1618fdfcf0 (patch) | |
tree | 939dfe55df9d372521b8b83b96c1cb09ec8b8278 /src/plugins/lua/aws_s3.lua | |
parent | 0a6c16ce3ffa79334223c43cad99437ce55246cf (diff) | |
download | rspamd-cce3e3afdec603353f1d8b45d23c5f1618fdfcf0.tar.gz rspamd-cce3e3afdec603353f1d8b45d23c5f1618fdfcf0.zip |
[Minor] Add augmentation for aws_s3 plugin
Diffstat (limited to 'src/plugins/lua/aws_s3.lua')
-rw-r--r-- | src/plugins/lua/aws_s3.lua | 7 |
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 |