clickhouse_first_row()
rspamd_config:register_symbol({
name = 'CLICKHOUSE_COLLECT',
- type = 'postfilter',
+ type = 'idempotent',
callback = clickhouse_collect,
priority = 10
})
else
rspamd_config:register_symbol({
name = 'GREYLIST_SAVE',
- type = 'postfilter',
+ type = 'idempotent',
callback = greylist_set,
priority = 6
})
else
rspamd_config:register_symbol({
name = 'HISTORY_SAVE',
- type = 'postfilter,nostat',
+ type = 'idempotent',
callback = history_save,
priority = 150
})
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
})
end
rspamd_config:register_symbol({
name = 'MILTER_HEADERS',
- type = 'postfilter',
+ type = 'postfilter,idempotent',
callback = milter_headers,
priority = 10
})
end
rspamd_config:register_symbol({
name = 'RATELIMIT_SET',
- type = 'postfilter,nostat',
+ type = 'idempotent',
priority = 5,
callback = rate_set,
})
else
rspamd_config:register_symbol({
name = 'REPLIES_SET',
- type = 'postfilter,nostat',
+ type = 'idempotent',
callback = replies_set,
priority = 5
})