mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Final notice email tuning.
This commit is contained in:
parent
0e79ec46b6
commit
7746f5b223
1 changed files with 5 additions and 7 deletions
|
@ -354,10 +354,11 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool)
|
|||
|
||||
local email_text = email_headers(fmt("%s", n$note), dest);
|
||||
|
||||
# Finish off the headers and start the message body.
|
||||
email_text = string_cat(email_text, "\n");
|
||||
# First off, finish the headers and include the human readable message
|
||||
# then leave a blank line after the message.
|
||||
email_text = string_cat(email_text, "\nMessage: ", n$msg, "\n\n");
|
||||
|
||||
# First off, add information about the connection if it exists.
|
||||
# Next, add information about the connection if it exists.
|
||||
if ( n?$id )
|
||||
{
|
||||
email_text = string_cat(email_text, "Connection: ",
|
||||
|
@ -369,9 +370,6 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool)
|
|||
else if ( n?$src )
|
||||
email_text = string_cat(email_text, "Address: ", fmt("%s", n$src), "\n");
|
||||
|
||||
# Any connection information is followed up by the human readable message.
|
||||
email_text = string_cat(email_text, "Message: ", n$msg, "\n");
|
||||
|
||||
# Add the extended information if it's requested.
|
||||
if ( extend )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue