]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rbl: Fix conversion for emailbl
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2019 15:45:50 +0000 (16:45 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2019 15:45:50 +0000 (16:45 +0100)
lualib/lua_cfg_transform.lua

index ae7d8997cc10a67d865bdd76d4787414236ea11c..a82bae1b79813cf236ddd5823e4ba954f06c2ade 100644 (file)
@@ -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