Selaa lähdekoodia

[Minor] Remove deprecated API calls

tags/1.5.4
Vsevolod Stakhov 7 vuotta sitten
vanhempi
commit
7021ddcc38
2 muutettua tiedostoa jossa 0 lisäystä ja 31 poistoa
  1. 0
    9
      src/plugins/lua/once_received.lua
  2. 0
    22
      src/plugins/lua/rbl.lua

+ 0
- 9
src/plugins/lua/once_received.lua Näytä tiedosto

@@ -129,16 +129,6 @@ local function check_quantity_received (task)
end
end

if type(rspamd_config.get_api_version) ~= 'nil' then
if rspamd_config:get_api_version() >= 1 then
rspamd_config:register_module_option('once_received', 'symbol', 'string')
rspamd_config:register_module_option('once_received', 'symbol_strict', 'string')
rspamd_config:register_module_option('once_received', 'bad_host', 'string')
rspamd_config:register_module_option('once_received', 'good_host', 'string')
end
end

local opts = rspamd_config:get_all_opt('options')
if opts and type(opts) ~= 'table' then
if type(opts['check_local']) == 'boolean' then

+ 0
- 22
src/plugins/lua/rbl.lua Näytä tiedosto

@@ -406,29 +406,6 @@ local function rbl_cb (task)
end
end

if type(rspamd_config.get_api_version) ~= 'nil' then
if rspamd_config:get_api_version() >= 1 then
rspamd_config:register_module_option(N, 'rbls', 'map')
rspamd_config:register_module_option(N, 'default_ipv4', 'string')
rspamd_config:register_module_option(N, 'default_ipv6', 'string')
rspamd_config:register_module_option(N, 'default_received', 'string')
rspamd_config:register_module_option(N, 'default_from', 'string')
rspamd_config:register_module_option(N, 'default_rdns', 'string')
rspamd_config:register_module_option(N, 'default_helo', 'string')
rspamd_config:register_module_option(N, 'default_dkim', 'string')
rspamd_config:register_module_option(N, 'default_dkim_domainonly', 'string')
rspamd_config:register_module_option(N, 'default_unknown', 'string')
rspamd_config:register_module_option(N, 'default_exclude_users', 'string')
rspamd_config:register_module_option(N, 'default_exclude_private_ips', 'string')
rspamd_config:register_module_option(N, 'local_exclude_ip_map', 'string')
rspamd_config:register_module_option(N, 'default_exclude_local', 'string')
rspamd_config:register_module_option(N, 'default_emails', 'string')
rspamd_config:register_module_option(N, 'default_is_whitelist', 'string')
rspamd_config:register_module_option(N, 'default_ignore_whitelists', 'string')
end
end

-- Configuration
local opts = rspamd_config:get_all_opt(N)
if not (opts and type(opts) == 'table') then

Loading…
Peruuta
Tallenna