diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-08 00:18:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-08 00:22:38 +0000 |
commit | 1f9916144e1de13431d341efa9d67272ee3773ee (patch) | |
tree | 81f0f7c759f8da29f2be01012a87e4399c554fad /src/plugins/lua/dmarc.lua | |
parent | 9cb4f26bd048aaa3a292d7a1ac8161288cbf7bf9 (diff) | |
download | rspamd-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.lua | 2 |
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 |