* - key
*/
if (!rspamd_lua_parse_table_arguments (L, 2, &err,
- "key=S;rawkey=V;*domain=S;*selector=S;no_check=B;headers=S",
+ "key=S;rawkey=V;*domain=S;*selector=S;no_cache=B;headers=S",
&key, &rawlen, &rawkey, &domain, &selector, &no_cache, &headers)) {
msg_err_task ("invalid return value from sign condition: %e",
err);
local E = {}
local N = 'dkim_signing'
local redis_params
+local sign_func = rspamd_plugins.dkim.sign
local function simple_template(tmpl, keys)
local lpeg = require "lpeg"
rk, err)
else
p.rawkey = data
- if rspamd_plugins.dkim.sign(task, p) then
+ local ret, _ = sign_func(task, p)
+ if ret then
task:insert_result(settings.symbol, 1.0)
end
end
else
if (p.key and p.selector) then
p.key = simple_template(p.key, {domain = p.domain, selector = p.selector})
- return rspamd_plugins.dkim.sign(task, p)
+ local ret, _ = sign_func(task, p)
+ return ret
else
rspamd_logger.infox(task, 'key path or dkim selector unconfigured; no signing')
return false