From: Andrew Lewis Date: Tue, 2 Aug 2016 19:45:57 +0000 (+0200) Subject: [Fix] Fix DMARC_BAD_POLICY symbol X-Git-Tag: 1.3.2~65^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F793%2Fhead;p=rspamd.git [Fix] Fix DMARC_BAD_POLICY symbol --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index ef86cfd07..f6dd8c75a 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -193,6 +193,7 @@ local function dmarc_callback(task) end end + local res = 0.5 if failed_policy then task:insert_result('DMARC_BAD_POLICY', res, lookup_domain .. ' : ' .. failed_policy) return @@ -231,7 +232,6 @@ local function dmarc_callback(task) end disposition = "none" - local res = 0.5 if not (spf_ok or dkim_ok) then res = 1.0 if quarantine_policy then