GError *err = NULL;
struct rspamd_mime_header *rh, *rh_cur;
struct dkim_check_result *res = NULL, *cur;
- guint checked = 0, *dmarc_checks;
+ guint checked = 0;
+ gdouble *dmarc_checks;
struct dkim_ctx *dkim_module_ctx = dkim_get_context (task->cfg);
/* Allow dmarc */
local hfromdom = ((from or E)[1] or E).domain
local dmarc_domain
local ip_addr = task:get_ip()
- local dmarc_checks = task:get_mempool():get_variable('dmarc_checks', 'int') or 0
+ local dmarc_checks = task:get_mempool():get_variable('dmarc_checks', 'double') or 0
local seen_invalid = false
if dmarc_checks ~= 2 then
local sym = flag_to_symbol(flags)
task:insert_result(sym, 1.0, err)
end
+
+ local dmarc_checks = task:get_mempool():get_variable('dmarc_checks', 'double') or 0
+ dmarc_checks = dmarc_checks + 1
+ task:get_mempool():set_variable('dmarc_checks', dmarc_checks)
end
rspamd_spf.resolve(task, spf_resolved_cb)