diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-09 17:13:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-09 17:13:46 +0000 |
commit | 0b31bfd2c7d2c706e0b141a657924a1a5730ecb6 (patch) | |
tree | cef001447edb42e20bd7ac8b04a2d8a650899a29 /src/plugins/lua/arc.lua | |
parent | b98e76367a8a9099720ce666753386f5189be24f (diff) | |
download | rspamd-0b31bfd2c7d2c706e0b141a657924a1a5730ecb6.tar.gz rspamd-0b31bfd2c7d2c706e0b141a657924a1a5730ecb6.zip |
[Minor] Arc: Use ARC_CHECK as the callback symbol's name
Diffstat (limited to 'src/plugins/lua/arc.lua')
-rw-r--r-- | src/plugins/lua/arc.lua | 11 |
1 files 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') |