mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Adding sub messages to emails.
This commit is contained in:
parent
4753f2aeca
commit
b2323305f8
1 changed files with 6 additions and 2 deletions
|
@ -354,9 +354,13 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool)
|
||||||
|
|
||||||
local email_text = email_headers(fmt("%s", n$note), dest);
|
local email_text = email_headers(fmt("%s", n$note), dest);
|
||||||
|
|
||||||
# First off, finish the headers and include the human readable message
|
# First off, finish the headers and include the human readable messages
|
||||||
# then leave a blank line after the message.
|
# then leave a blank line after the message.
|
||||||
email_text = string_cat(email_text, "\nMessage: ", n$msg, "\n\n");
|
email_text = string_cat(email_text, "\nMessage: ", n$msg);
|
||||||
|
if ( n?$sub )
|
||||||
|
email_text = string_cat(email_text, "\nSub-message: ", n$sub);
|
||||||
|
|
||||||
|
email_text = string_cat(email_text, "\n\n");
|
||||||
|
|
||||||
# Next, add information about the connection if it exists.
|
# Next, add information about the connection if it exists.
|
||||||
if ( n?$id )
|
if ( n?$id )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue