From: Vsevolod Stakhov Date: Fri, 3 Sep 2021 13:33:36 +0000 (+0100) Subject: [Minor] Dmarc_report: Fix template X-Git-Tag: 3.1~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78a44caf619fd293fcc097e77641b98e76c655fe;p=thirdparty%2Frspamd.git [Minor] Dmarc_report: Fix template Issue: #3877 --- diff --git a/lualib/rspamadm/dmarc_report.lua b/lualib/rspamadm/dmarc_report.lua index 0b1a1983fb..561ea599d9 100644 --- a/lualib/rspamadm/dmarc_report.lua +++ b/lualib/rspamadm/dmarc_report.lua @@ -226,23 +226,23 @@ local function entry_to_xml(data) {= data.disposition =} {= data.dkim_disposition =} {= data.spf_disposition =} - {% if data.override and data.override ~= '' %} + {% if data.override and data.override ~= '' -%} {= data.override =} - {% endif %} + {%- endif %} {= data.header_from =} - {% if data.dkim_results[1] %} - {% for d in data.dkim_results[1] %} + {% if data.dkim_results[1] -%} + {% for d in data.dkim_results -%} {= d.domain =} {= d.result =} - {% endfor %} - {% endif %} + {%- endfor %} + {%- endif %} {= data.spf_domain =} {= data.spf_result =}