Browse Source

[Minor] Set idempotent postfilters

tags/1.7.0
Vsevolod Stakhov 6 years ago
parent
commit
7b902c00bc

+ 1
- 1
src/plugins/lua/clickhouse.lua View File

@@ -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
})

+ 1
- 1
src/plugins/lua/greylist.lua View File

@@ -421,7 +421,7 @@ if opts then
else
rspamd_config:register_symbol({
name = 'GREYLIST_SAVE',
type = 'postfilter',
type = 'idempotent',
callback = greylist_set,
priority = 6
})

+ 1
- 1
src/plugins/lua/history_redis.lua View File

@@ -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
})

+ 1
- 1
src/plugins/lua/metadata_exporter.lua View File

@@ -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
})

+ 1
- 1
src/plugins/lua/milter_headers.lua View File

@@ -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
})

+ 1
- 1
src/plugins/lua/ratelimit.lua View File

@@ -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,
})

+ 1
- 1
src/plugins/lua/replies.lua View File

@@ -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
})

Loading…
Cancel
Save