diff --git a/root/var/lib/zabbix/bin/util_parse_mail_in b/root/var/lib/zabbix/bin/util_parse_mail_in index 0e1bc52..598d366 100644 --- a/root/var/lib/zabbix/bin/util_parse_mail_in +++ b/root/var/lib/zabbix/bin/util_parse_mail_in @@ -87,8 +87,8 @@ while () { next; } - # Queued, not tagged as spam, those are the clean emails - elsif ($line =~ m/queued\s+<.*>\s+No,\s+(score|hits)=/){ + # Queued, not tagged as spam (or spam filtering disabled), those are the clean emails + elsif ($line =~ m/queued\s+<.*>(\s+No,\s+(score|hits)=.+)?/){ $cnt{queued}++; next; }