From 0a6137e92452447e5b3ba0af24960daa8d59356f Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 13 Mar 2017 13:16:48 +0200 Subject: [PATCH] [Minor] Fix tests --- rules/forwarding.lua | 2 +- rules/misc.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 +} -- 2.39.5