소스 검색

[Minor] Rbl: Add no_squeeze flag

tags/1.9.0
Vsevolod Stakhov 5 년 전
부모
커밋
5dcf4d6ebd
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      src/plugins/lua/rbl.lua

+ 3
- 3
src/plugins/lua/rbl.lua 파일 보기

@@ -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

Loading…
취소
저장