From: Andrew Lewis Date: Fri, 6 Feb 2015 14:08:37 +0000 (+0200) Subject: Amendment: nest stuff X-Git-Tag: 0.9.0~756^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8003fa42f992edc5c5b74b23f2105a046f00b60;p=rspamd.git Amendment: nest stuff --- diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 5b9311adf..eb1cdcb3a 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -131,8 +131,8 @@ local function check_settings(task) local rcpt = task:get_recipients() local uname = task:get_user() local user = {} - user[1] = {} if uname then + user[1] = {} for localpart, domainpart in string.gmatch(uname, "(.+)@(.+)") do user[1]["user"] = localpart user[1]["domain"] = domainpart