2018-07-15 18:01:28 +08:00
|
|
|
local custom_keywords = {}
|
2017-08-31 03:42:39 +08:00
|
|
|
|
2018-07-15 18:01:28 +08:00
|
|
|
custom_keywords.mailcow = function(task)
|
2017-08-19 04:17:01 +08:00
|
|
|
local rspamd_logger = require "rspamd_logger"
|
2017-08-31 03:42:39 +08: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 18:01:28 +08: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-19 04:17:01 +08:00
|
|
|
end
|
|
|
|
end
|
2018-07-15 18:01:28 +08:00
|
|
|
|
|
|
|
return custom_keywords
|