Debian Codegraph @

test/functional/lua/external_relay.lua

raw
1 rspamd_config:register_symbol({
2 name = 'EXTERNAL_RELAY_TEST',
3 score = 0.0,
4 callback = function(task)
5 local from_ip = string.format('IP=%s', task:get_from_ip() or 'NIL')
6 local hostname = string.format('HOSTNAME=%s', task:get_hostname() or 'NIL')
7 local helo = string.format('HELO=%s', task:get_helo() or 'NIL')
8 return true, from_ip, hostname, helo
9 end
10 })