From: Vsevolod Stakhov Date: Sat, 31 Jul 2021 20:25:21 +0000 (+0100) Subject: [Minor] Refactor module name variable X-Git-Tag: 3.0~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb4171299d095c0a0830ece6ea95d99ef2bf7d72;p=thirdparty%2Frspamd.git [Minor] Refactor module name variable --- diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index d9e44f4557..417bd89eb5 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -19,7 +19,7 @@ limitations under the License. local rspamd_logger = require "rspamd_logger" local rspamd_util = require "rspamd_util" -local rspamd_redis = require "lua_redis" +local lua_redis = require "lua_redis" local lua_util = require "lua_util" if confighelp then @@ -518,7 +518,7 @@ local function dmarc_validate_policy(task, policy, hdrfromdom, dmarc_esld) settings.reporting.redis_keys.join_char) if report_data then - rspamd_redis.exec_redis_script(take_report_id, + lua_redis.exec_redis_script(take_report_id, {task = task, is_write = true}, dmarc_report_cb, {idx_key, dmarc_domain_key, @@ -706,12 +706,12 @@ lua_maps.fill_config_maps(N, settings, { if settings.reporting == true then rspamd_logger.errx(rspamd_config, 'old style dmarc reporting is NO LONGER supported, please read the documentation') elseif settings.reporting.enabled then - redis_params = rspamd_parse_redis_server('dmarc') + redis_params = lua_redis.parse_redis_server('dmarc', opts) if not redis_params then rspamd_logger.errx(rspamd_config, 'cannot parse servers parameter') else rspamd_logger.infox(rspamd_config, 'dmarc reporting is enabled') - take_report_id = rspamd_redis.add_redis_script(take_report_script, redis_params) + take_report_id = lua_redis.add_redis_script(take_report_script, redis_params) end end