Add SMTP_MAIL_FROM, SMTP_RCPT_TO mapping + L7_PROTO_RISK_NAME dump on syslog.

This commit is contained in:
Nicolo Maio 2024-01-30 17:52:33 +01:00
parent 3f703ca062
commit ed479a8b09
8 changed files with 189 additions and 16 deletions

View file

@ -665,7 +665,16 @@ function format_utils.formatMessage(notification, options)
end
-- ######################################################
-- This function removes '>' and '<' from email list and
-- adds a space after the commas
function format_utils.formatEmailList(email_list)
local email_list_formatted = replace(email_list,"<","")
email_list_formatted = replace(email_list_formatted, ">", "")
email_list_formatted = replace(email_list_formatted, ",", ", ")
return email_list_formatted
end
-- ######################################################
if(trace_script_duration ~= nil) then
io.write(debug.getinfo(1,'S').source .." executed in ".. (os.clock()-clock_start)*1000 .. " ms\n")
end