]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Rbl: Add no_squeeze flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 16 Dec 2018 17:10:36 +0000 (17:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 16 Dec 2018 17:10:36 +0000 (17:10 +0000)
src/plugins/lua/rbl.lua

index 363f4787424883de70515cf9842bb0570773a496..3bbf46ff3d313d3460c852e5061efa6bf6f7cdec 100644 (file)
@@ -534,7 +534,7 @@ local function add_rbl(key, rbl)
     rbl.symbol = key:upper()
   end
 
-  local flags_tbl = {}
+  local flags_tbl = {'no_squeeze'}
   if rbl.is_whitelist then
     flags_tbl[#flags_tbl + 1] = 'nice'
   end
@@ -655,14 +655,14 @@ rspamd_config:register_symbol{
   type = 'callback',
   callback = rbl_callback_white,
   name = 'RBL_CALLBACK_WHITE',
-  flags = 'nice,empty'
+  flags = 'nice,empty,no_squeeze'
 }
 
 rspamd_config:register_symbol{
   type = 'callback',
   callback = rbl_callback_fin,
   name = 'RBL_CALLBACK',
-  flags = 'empty'
+  flags = 'empty,no_squeeze'
 }
 
 for _, w in ipairs(white_symbols) do