aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:52:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:52:24 +0000
commit7021ddcc38a0f05b2bf69849f645a848e06be1e2 (patch)
tree1c9118b1c506bdeb437d04981f5ca4a9bc3fcfa3 /src/plugins
parent24310718feff52210eb9e6046f250a7f65fa83f1 (diff)
downloadrspamd-7021ddcc38a0f05b2bf69849f645a848e06be1e2.tar.gz
rspamd-7021ddcc38a0f05b2bf69849f645a848e06be1e2.zip
[Minor] Remove deprecated API calls
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/once_received.lua10
-rw-r--r--src/plugins/lua/rbl.lua23
2 files changed, 0 insertions, 33 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 65e6127c9..00161159f 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -129,16 +129,6 @@ local function check_quantity_received (task)
end
end
--- Registration
-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
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index ec1958fe1..11479df9e 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -406,29 +406,6 @@ local function rbl_cb (task)
end
end
--- Registration
-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