]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rbl: Match old surbl behaviour for emails
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Sep 2019 08:35:31 +0000 (09:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Sep 2019 08:36:01 +0000 (09:36 +0100)
lualib/lua_cfg_transform.lua

index 07a53723ec5bcb37b103b01f8711d34e19b68452..32e1a2ee359cd9567912d8500dac7044c404d506 100644 (file)
@@ -263,6 +263,11 @@ local function surbl_section_convert(cfg, section)
           converted.dkim_match_from = true
         end
 
+        if k == 'emails' and v then
+          -- To match surbl behaviour
+          converted.emails_domainonly = true
+        end
+
         converted[k] = lua_util.deepcopy(v)
       end
       rbl_section[name] = converted