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.
10 lines
292 B
10 lines
292 B
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
|
|
})
|