From: Andrew Lewis Date: Thu, 17 Sep 2015 15:08:17 +0000 (+0200) Subject: Fix DKIM RBL X-Git-Tag: 1.0.0~2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F370%2Fhead;p=thirdparty%2Frspamd.git Fix DKIM RBL --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 0203e969ce..c1ea77ef16 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