Sometimes user_agent is missing

This commit is contained in:
Michael Dopheide 2021-03-24 15:48:09 -05:00
parent 8fb30f1d62
commit 83d5b44462

View file

@ -48,7 +48,7 @@ export {
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 )
c$smtp$is_webmail = T;
}