diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-17 16:11:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-17 16:11:27 +0100 |
commit | 7a4a9a29d50b24789d66784d0ffb78d3361b51d6 (patch) | |
tree | d3343e222ddeacb8b4c1958f6d879f3caa4eff78 | |
parent | 1cdd82879e007ce1cde16d97feeb84ec2b6cfdd3 (diff) | |
parent | 36df406d4d22ba92501010dc07f507ad7484afe8 (diff) | |
download | rspamd-7a4a9a29d50b24789d66784d0ffb78d3361b51d6.tar.gz rspamd-7a4a9a29d50b24789d66784d0ffb78d3361b51d6.zip |
Merge pull request #370 from fatalbanana/master
Fix DKIM RBL
-rw-r--r-- | src/plugins/lua/rbl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 0203e969c..c1ea77ef1 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -176,14 +176,14 @@ local function rbl_cb (task) end if not havegot['dkim'] then local das = task:get_symbol(symbols['dkim_allow_symbol']) - if das and das[1] and das[1]['options'] and das[1]['options'][0] then + if das and das[1] and das[1]['options'] then havegot['dkim'] = das[1]['options'] else notgot['dkim'] = true return end end - for _, d in pairs(havegot['dkim']) do + for _, d in ipairs(havegot['dkim']) do if rbl['dkim_domainonly'] then local url_from = rspamd_url.create(task:get_mempool(), d) if url_from then |