mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Fixed a small bug major problem with email delay timeout catching.
This commit is contained in:
parent
2d97e25eeb
commit
f1f5719f83
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ event Notice::notice(n: Notice::Info) &priority=10
|
|||
n$email_body_sections[|n$email_body_sections|] = output;
|
||||
delete n$email_delay_tokens["hostnames-src"];
|
||||
}
|
||||
timeout max_email_delay+5secs { }
|
||||
timeout max_email_delay { }
|
||||
}
|
||||
if ( n?$dst )
|
||||
{
|
||||
|
@ -36,6 +36,6 @@ event Notice::notice(n: Notice::Info) &priority=10
|
|||
n$email_body_sections[|n$email_body_sections|] = output;
|
||||
delete n$email_delay_tokens["hostnames-dst"];
|
||||
}
|
||||
timeout max_email_delay+5secs { }
|
||||
timeout max_email_delay { }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -369,7 +369,7 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool)
|
|||
{
|
||||
if ( |n$email_delay_tokens| > 0 )
|
||||
{
|
||||
# If we still are within the max_email_delay, keep delaying
|
||||
# If we still are within the max_email_delay, keep delaying.
|
||||
if ( n$ts + max_email_delay > network_time() )
|
||||
schedule 1sec { delay_sending_email(n, dest, extend) };
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue