mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Sometimes user_agent is missing
This commit is contained in:
parent
8fb30f1d62
commit
83d5b44462
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ export {
|
||||||
|
|
||||||
event mime_one_header(c: connection, h: mime_header_rec) &priority=4
|
event mime_one_header(c: connection, h: mime_header_rec) &priority=4
|
||||||
{
|
{
|
||||||
if ( ! c?$smtp ) return;
|
if ( ! c?$smtp || ! c$smtp?$user_agent ) return;
|
||||||
if ( h$name == "USER-AGENT" && webmail_user_agents in c$smtp$user_agent )
|
if ( h$name == "USER-AGENT" && webmail_user_agents in c$smtp$user_agent )
|
||||||
c$smtp$is_webmail = T;
|
c$smtp$is_webmail = T;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue