rspamd_config.MULTIPLE_FROM = {
callback = function(task)
local from = task:get_from('mime')
- if from and from[1] then
- if #from > 1 then
- return true,1.0,table.concat(
- fun.totable(
- fun.map(function(a) return a.addr end,
- fun.filter(function(a) return a.addr and a.addr ~= '' end,
- from))),
- ',')
- end
+ if from and from[2] then
+ return true, 1.0, fun.totable(fun.map(function(a) return a.raw end, from))
end
return false
end,
PHISH_SENDER_A
Scan File ${TESTDIR}/messages/phish_sender.eml
- Expect Symbol With Score And Exact Options MULTIPLE_FROM 9.0 any@attack.com,admin@legitimate.com
+ Expect Symbol With Score And Exact Options MULTIPLE_FROM 9.0 <any@attack.com> <admin@legitimate.com>
Expect Symbol With Score And Exact Options MULTIPLE_UNIQUE_HEADERS 7.0 From
PHISH_SENDER_B