if st_many then
local rcpt = task:get_recipients(2)
if rcpt and #rcpt > 5 then
- fun.each(function(_,v) table.insert(spec_st,v) end, st_many)
+ fun.each(function(v) table.insert(spec_st,v) end, st_many)
end
end
-- Undisclosed
if st_undisc then
local rcpt = task:get_recipients(2)
if rcpt and #rcpt == 0 then
- fun.each(function(_,v) table.insert(spec_st,v) end, st_undisc)
+ fun.each(function(v) table.insert(spec_st,v) end, st_undisc)
end
end
-- Maillist
if st_maillist then
local unsub_header = task:get_header_raw('List-Unsubscribe')
if unsub_header then
- fun.each(function(_,v) table.insert(spec_st,v) end, st_maillist)
+ fun.each(function(v) table.insert(spec_st,v) end, st_maillist)
end
end
-- Long subject
if st_longsubj then
local subj = task:get_header_raw('Subject')
if subj and string.len(subj) > 150 then
- fun.each(function(_,v) table.insert(spec_st,v) end, st_longsubj)
+ fun.each(function(v) table.insert(spec_st,v) end, st_longsubj)
end
end
return spec_st
else
-- Merge tables
- fun.each(function(_,v) table.insert(selected,v) end, spec_st)
+ fun.each(function(v) table.insert(selected,v) end, spec_st)
end
end
-- Detect statfile by language