From 0b31bfd2c7d2c706e0b141a657924a1a5730ecb6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 9 Jan 2022 17:13:46 +0000 Subject: [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') -- cgit v1.2.3