mirror of https://github.com/rspamd/rspamd.git
Rapid spam filtering system
https://rspamd.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
310 B
14 lines
310 B
rspamd_config:register_symbol({
|
|
name = 'TEST_RCPT',
|
|
score = 1.0,
|
|
callback = function(task)
|
|
local l = {}
|
|
local rcpts = task:get_recipients(1)
|
|
for _, r in ipairs(rcpts) do
|
|
table.insert(l, r['addr'])
|
|
end
|
|
table.sort(l)
|
|
local t = table.concat(l, ",")
|
|
return true, t
|
|
end
|
|
})
|