summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-03-13 13:16:48 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-03-13 13:16:48 +0200
commit0a6137e92452447e5b3ba0af24960daa8d59356f (patch)
treeea4c92c49991e681a4906b2728a9d8eccb47be11 /rules
parentdfc2fe8153d1dc6a4271373059f215029ca4a2e1 (diff)
downloadrspamd-0a6137e92452447e5b3ba0af24960daa8d59356f.tar.gz
rspamd-0a6137e92452447e5b3ba0af24960daa8d59356f.zip
[Minor] Fix tests
Diffstat (limited to 'rules')
-rw-r--r--rules/forwarding.lua2
-rw-r--r--rules/misc.lua3
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
+}