]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set idempotent postfilters
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Aug 2017 15:51:32 +0000 (16:51 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 12 Aug 2017 19:26:17 +0000 (20:26 +0100)
src/plugins/lua/clickhouse.lua
src/plugins/lua/greylist.lua
src/plugins/lua/history_redis.lua
src/plugins/lua/metadata_exporter.lua
src/plugins/lua/milter_headers.lua
src/plugins/lua/ratelimit.lua
src/plugins/lua/replies.lua

index bd164ab65ec8c4300210d2d199d5ce4eafcb7bf9..77b10a51bd0e4e5ba77fb57a247738e6c28894de 100644 (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
       })
index 719ba9270871498a564260c22dedb228a434aae2..622da4d9a9ab45d20357a1e540451880d697b3db 100644 (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
     })
index 002c74e553d24ffe6a62f66ed8f8faf5d6c719e0..13d6aafe59667f79bddf23b4a92706910404d217 100644 (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
     })
index 409115918974d219b767c3aecf24fd5447fd590e..128da3dc8e00a33d75c8d7c69109708543b51b33 100644 (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
   })
index 29adf0c4aea0c80e413f0a171cfe683d4629bbdf..39cfb3298bec54b31c5c7bc1126527bdd194cb40 100644 (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
 })
index 52df88ed06d06b686563d4b8fda340b503419788..70429cc195ceae9a74378538cd87f6dd108dd086 100644 (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,
     })
index 39dfa11130bebc28cc8d0ee8359a16bf40d1e17b..99d13db7b73c7530581f983bf8e7922771cce2b5 100644 (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
     })