commit 99d4c15: [Minor] Another fix for expect_ip, sigh..
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Sep 17 12:42:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-17 13:35:17 +0100
URL: https://github.com/rspamd/rspamd/commit/99d4c15237cf8647ca8fd3948c6ebff18149aa65 (HEAD -> master)
[Minor] Another fix for expect_ip, sigh..
---
lualib/lua_cfg_transform.lua | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index b6919cb10..3a3b8e0ee 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -327,10 +327,11 @@ local function emails_section_convert(cfg, section)
if k == 'expect_ip' then
-- Another stupid hack
if not converted.return_codes then
- converted.return_codes = {}
+ converted.returncodes = {}
end
local symbol = value.symbol or name
- converted.return_codes[symbol] = { v }
+ converted.returncodes[symbol] = { v }
+ skip = true
end
if not skip then
More information about the Commits
mailing list