]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] DMARC: s/type/format/
authorAndrew Lewis <nerf@judo.za.org>
Wed, 17 May 2017 15:08:38 +0000 (17:08 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 17 May 2017 15:09:17 +0000 (17:09 +0200)
src/plugins/lua/dmarc.lua

index f27ca2a2334f85627924288bca0ad647e47a0639..377ecc30f4b6c01426343d415f5be367da3bf6b1 100644 (file)
@@ -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)