☰
Debian Codegraph
@
4.1.5-1
4.0.1-1
/
/
test
/
functional
/
lua
/
get_from.lua
☽
☼
test/functional/lua/get_from.lua
code
plain
raw
Apache-2.0
2008-2024 Vsevolod Stakhov <
[email protected]
>
debian/copyright
1
rspamd_config:register_symbol({
2
name = 'GET_FROM',
3
score = 1.0,
4
callback = function(task)
5
local a = task:get_from('mime')
6
if not a then return end
7
a = a[1]
8
return true, (a.name or '') .. ',' .. (a.addr or '') .. ',' .. (a.user or '') .. ',' .. (a.domain or '')
9
end
10
})