commit 0b31bfd: [Minor] Arc: Use ARC_CHECK as the callback symbol's name
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Jan 9 18:07:05 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-01-09 17:13:46 +0000
URL: https://github.com/rspamd/rspamd/commit/0b31bfd2c7d2c706e0b141a657924a1a5730ecb6
[Minor] Arc: Use ARC_CHECK as the callback symbol's name
---
src/plugins/lua/arc.lua | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index e482ce0f0..2fb7f7dfc 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -431,12 +431,17 @@ end
local id = rspamd_config:register_symbol({
- name = 'ARC_CALLBACK',
+ name = 'ARC_CHECK',
type = 'callback',
group = 'policies',
groups = {'arc'},
callback = arc_callback
})
+rspamd_config:register_symbol({
+ name = 'ARC_CALLBACK', -- compatibility symbol
+ type = 'virtual,skip',
+ parent = id,
+})
rspamd_config:register_symbol({
name = arc_symbols['allow'],
@@ -479,8 +484,8 @@ rspamd_config:register_symbol({
groups = {'arc'},
})
-rspamd_config:register_dependency('ARC_CALLBACK', 'SPF_CHECK')
-rspamd_config:register_dependency('ARC_CALLBACK', 'DKIM_CHECK')
+rspamd_config:register_dependency('ARC_CHECK', 'SPF_CHECK')
+rspamd_config:register_dependency('ARC_CHECK', 'DKIM_CHECK')
local function arc_sign_seal(task, params, header)
local arc_sigs = task:cache_get('arc-sigs')
More information about the Commits
mailing list