summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/dmarc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-08 00:18:01 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-08 00:22:38 +0000
commit1f9916144e1de13431d341efa9d67272ee3773ee (patch)
tree81f0f7c759f8da29f2be01012a87e4399c554fad /src/plugins/lua/dmarc.lua
parent9cb4f26bd048aaa3a292d7a1ac8161288cbf7bf9 (diff)
downloadrspamd-1f9916144e1de13431d341efa9d67272ee3773ee.tar.gz
rspamd-1f9916144e1de13431d341efa9d67272ee3773ee.zip
Use has symbol when no need to get extra data for a symbol
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r--src/plugins/lua/dmarc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 91946f039..06509e1c8 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -196,7 +196,7 @@ local function dmarc_callback(task)
-- Check dkim and spf symbols
local spf_ok = false
local dkim_ok = false
- if task:get_symbol(symbols['spf_allow_symbol']) then
+ if task:has_symbol(symbols['spf_allow_symbol']) then
efrom = task:get_from(1)
if efrom and efrom[1] and efrom[1]['domain'] then
if efrom[1]['domain'] == from[1]['domain'] then