Adapt regex to match queued emails when spam filtering is disabled

tags/smeserver-zabbix-agent-0.4.8-1
Daniel Berteaud 5 years ago
parent 905bfdce90
commit 85fb39af13
  1. 4
      root/var/lib/zabbix/bin/util_parse_mail_in

@ -87,8 +87,8 @@ while (<STDIN>) {
next; next;
} }
# Queued, not tagged as spam, those are the clean emails # Queued, not tagged as spam (or spam filtering disabled), those are the clean emails
elsif ($line =~ m/queued\s+<.*>\s+No,\s+(score|hits)=/){ elsif ($line =~ m/queued\s+<.*>(\s+No,\s+(score|hits)=.+)?/){
$cnt{queued}++; $cnt{queued}++;
next; next;
} }

Loading…
Cancel
Save