2018-07-15 12:01:28 +02:00
|
|
|
local custom_keywords = {}
|
2017-08-30 21:42:39 +02:00
|
|
|
|
2018-07-15 12:01:28 +02:00
|
|
|
custom_keywords.mailcow = function(task)
|
2017-08-18 22:17:01 +02:00
|
|
|
local rspamd_logger = require "rspamd_logger"
|
2017-08-30 21:42:39 +02:00
|
|
|
local dyn_rl_symbol = task:get_symbol("DYN_RL")
|
|
|
|
if dyn_rl_symbol then
|
|
|
|
local rl_value = dyn_rl_symbol[1].options[1]
|
2018-07-15 12:01:28 +02:00
|
|
|
local rl_object = dyn_rl_symbol[1].options[2]
|
|
|
|
if rl_value and rl_object then
|
|
|
|
rspamd_logger.infox(rspamd_config, "DYN_RL symbol has value %s for object %s, returning %s...", rl_value, rl_object, "rs_dynrl_" .. rl_object)
|
|
|
|
return "rs_dynrl_" .. rl_object, rl_value
|
|
|
|
end
|
2017-08-18 22:17:01 +02:00
|
|
|
end
|
|
|
|
end
|
2018-07-15 12:01:28 +02:00
|
|
|
|
|
|
|
return custom_keywords
|