diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-08-12 16:51:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-08-12 20:26:17 +0100 |
commit | 7b902c00bce62688d9154ef76017135ad014c33c (patch) | |
tree | 496a3667a833cefcd471ea1756fcb3c365c066dc /src | |
parent | 1c0482342898e8d4e61dadfe4f443ec2c1ac965e (diff) | |
download | rspamd-7b902c00bce62688d9154ef76017135ad014c33c.tar.gz rspamd-7b902c00bce62688d9154ef76017135ad014c33c.zip |
[Minor] Set idempotent postfilters
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/clickhouse.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/greylist.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/history_redis.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/metadata_exporter.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/milter_headers.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/replies.lua | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index bd164ab65..77b10a51b 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -655,7 +655,7 @@ if opts then clickhouse_first_row() rspamd_config:register_symbol({ name = 'CLICKHOUSE_COLLECT', - type = 'postfilter', + type = 'idempotent', callback = clickhouse_collect, priority = 10 }) diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 719ba9270..622da4d9a 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -421,7 +421,7 @@ if opts then else rspamd_config:register_symbol({ name = 'GREYLIST_SAVE', - type = 'postfilter', + type = 'idempotent', callback = greylist_set, priority = 6 }) diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua index 002c74e55..13d6aafe5 100644 --- a/src/plugins/lua/history_redis.lua +++ b/src/plugins/lua/history_redis.lua @@ -219,7 +219,7 @@ if opts then else rspamd_config:register_symbol({ name = 'HISTORY_SAVE', - type = 'postfilter,nostat', + type = 'idempotent', callback = history_save, priority = 150 }) diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index 409115918..128da3dc8 100644 --- a/src/plugins/lua/metadata_exporter.lua +++ b/src/plugins/lua/metadata_exporter.lua @@ -688,7 +688,7 @@ end for k, r in pairs(settings.rules) do rspamd_config:register_symbol({ name = 'EXPORT_METADATA_' .. k, - type = 'postfilter', + type = 'postfilter,idempotent', callback = gen_exporter(r), priority = 10 }) diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index 29adf0c4a..39cfb3298 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -520,7 +520,7 @@ if type(opts['extended_headers_rcpt']) == 'table' and opts['extended_headers_rcp end rspamd_config:register_symbol({ name = 'MILTER_HEADERS', - type = 'postfilter', + type = 'postfilter,idempotent', callback = milter_headers, priority = 10 }) diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 52df88ed0..70429cc19 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -707,7 +707,7 @@ if opts then end rspamd_config:register_symbol({ name = 'RATELIMIT_SET', - type = 'postfilter,nostat', + type = 'idempotent', priority = 5, callback = rate_set, }) diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index 39dfa1113..99d13db7b 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -128,7 +128,7 @@ if opts then else rspamd_config:register_symbol({ name = 'REPLIES_SET', - type = 'postfilter,nostat', + type = 'idempotent', callback = replies_set, priority = 5 }) |