From abd3814aeb4930f8fe76c692b2e530b5bcc7de10 Mon Sep 17 00:00:00 2001 From: Jose Celestino Date: Thu, 23 Jan 2025 12:38:15 +0000 Subject: [PATCH] [Minor] Set RBL checks to bool true --- lualib/plugins/rbl.lua | 4 ++-- src/plugins/lua/rbl.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua index 50cabd633f..074fc7f0cf 100644 --- a/lualib/plugins/rbl.lua +++ b/lualib/plugins/rbl.lua @@ -166,8 +166,6 @@ local function convert_checks(rule, name) end end - rule[check] = check_type - if not check_type.connfilter then all_connfilter = false end @@ -177,6 +175,8 @@ local function convert_checks(rule, name) name, check) return nil end + + rule[check] = true else rspamd_logger.infox(rspamd_config, 'disable check %s in %s: excluded explicitly', check, name) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 3c7396cf89..bcdef5ce18 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -594,9 +594,9 @@ local function gen_rbl_callback(rule) limit = rule.requests_limit, ignore_redirected = true, ignore_ip = rule.no_ip, - need_images = rule.images and true or false, + need_images = rule.images, need_emails = false, - need_content = rule.content_urls and true or false, + need_content = rule.content_urls, esld_limit = esld_lim, no_cache = true, } -- 2.47.3