mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Add SMTP_MAIL_FROM, SMTP_RCPT_TO mapping + L7_PROTO_RISK_NAME dump on syslog.
This commit is contained in:
parent
3f703ca062
commit
ed479a8b09
8 changed files with 189 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue