aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_cfg_transform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_cfg_transform.lua')
-rw-r--r--lualib/lua_cfg_transform.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index ae7d8997c..a82bae1b7 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -316,11 +316,13 @@ local function emails_section_convert(cfg, section)
if k == 'domain_only' then k = 'emails_domainonly' end
if k == 'delimiter' then k = 'emails_delimiter' end
if k == 'skip_body' then
+ skip = true
if v then
-- Hack
converted.emails = false
converted.replyto = true
- skip = true
+ else
+ converted.emails = true
end
end
if k == 'expect_ip' then