From: Andrew Lewis Date: Fri, 6 Feb 2015 14:08:37 +0000 (+0200) Subject: Amendment: nest stuff X-Git-Tag: 0.8.2~55^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=78dba66e64d43af531a0bd67ac7ab46bdae884c1;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