From: Andrew Lewis Date: Mon, 13 Mar 2017 11:16:48 +0000 (+0200) Subject: [Minor] Fix tests X-Git-Tag: 1.5.3~42^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1518%2Fhead;p=rspamd.git [Minor] Fix tests --- diff --git a/rules/forwarding.lua b/rules/forwarding.lua index a5367173f..eae803f81 100644 --- a/rules/forwarding.lua +++ b/rules/forwarding.lua @@ -120,7 +120,7 @@ rspamd_config.FORWARDED = { if rcvds then for _, rcvd in ipairs(rcvds) do - local _,_,addr = rcvd['for'] + local addr = rcvd['for'] if addr then matches = matches + 1 -- Check that it doesn't match the envrcpt diff --git a/rules/misc.lua b/rules/misc.lua index 2c6d8899b..2bba06e91 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -16,7 +16,6 @@ limitations under the License. -- This is main lua config file for rspamd -local E = {} local fun = require "fun" local util = require "rspamd_util" local rspamd_regexp = require "rspamd_regexp" @@ -400,4 +399,4 @@ rspamd_config:register_symbol{ name = 'TAGGED_FROM', description = 'SMTP from has plus tags', score = 0, -} \ No newline at end of file +}