end
end
-id = rspamd_config:register_symbol({
+rspamd_config:register_symbol({
name = settings['sign_symbol'],
callback = arc_signing_cb
})
local h = rspamd_cryptobox_hash.create()
h:update(expr)
local name = 'FORCE_ACTION_' .. string.upper(string.sub(h:hex(), 1, 12))
- local id = rspamd_config:register_symbol({
+ rspamd_config:register_symbol({
type = 'normal',
name = name,
callback = cb,
t.name = 'FORCE_ACTION_' .. name
t.callback = cb
t.flags = 'empty'
- local id = rspamd_config:register_symbol(t)
+ rspamd_config:register_symbol(t)
if t.type == 'normal' then
for _, a in ipairs(atoms) do
rspamd_config:register_dependency(t.name, a)
elseif info_symbol then
s.name = info_symbol
end
- local id = rspamd_config:register_symbol(s)
+ rspamd_config:register_symbol(s)
if use_ip_score then
rspamd_config:register_dependency(s.name, 'IP_SCORE')
end
end)
-- We now generate symbol for checking
- local id = rspamd_config:register_symbol{
+ rspamd_config:register_symbol{
name = symbol,
type = 'normal',
callback = callback_gen(reputation_filter_cb, rule),
flags = 'empty'
end
- local id = rspamd_config:register_symbol({
+ rspamd_config:register_symbol({
name = symbol,
flags = flags,
callback = gen_whitelist_cb(symbol, rule)