blob: 9282866dac7e818f042d21d025a42204b9bbb024 (
plain)
1
2
3
4
5
6
7
8
9
10
|
rspamd_config:register_symbol({
name = 'GET_FROM',
score = 1.0,
callback = function(task)
local a = task:get_from('mime')
if not a then return end
a = a[1]
return true, (a.name or '') .. ',' .. (a.addr or '') .. ',' .. (a.user or '') .. ',' .. (a.domain or '')
end
})
|