From: Andrew Lewis Date: Wed, 17 May 2017 15:08:38 +0000 (+0200) Subject: [Minor] DMARC: s/type/format/ X-Git-Tag: 1.6.0~189 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=76159df4b2ee19ea36d5809e8a1a68e58fa12d5f;p=rspamd.git [Minor] DMARC: s/type/format/ --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index f27ca2a23..377ecc30f 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -574,7 +574,7 @@ local function dmarc_callback(task) end end -- Prepare and send redis report element - local period = os.date('%Y%m%d', task:get_date({type = 'connect', gmt = true})) + local period = os.date('%Y%m%d', task:get_date({format = 'connect', gmt = true})) local dmarc_domain_key = table.concat({redis_keys.report_prefix, hfromdom, period}, redis_keys.join_char) local report_data = dmarc_report(task, spf_ok and 'pass' or 'fail', dkim_ok and 'pass' or 'fail', disposition, sampled_out, hfromdom, spf_domain, dkim_results, spf_result)