From: Jose Celestino Date: Thu, 23 Jan 2025 12:38:15 +0000 (+0000) Subject: [Minor] Set RBL checks to bool true X-Git-Tag: 3.11.1~33^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5314%2Fhead;p=thirdparty%2Frspamd.git [Minor] Set RBL checks to bool true --- 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, }