Adapt regex to match queued emails when spam filtering is disabled

This commit is contained in:
Daniel Berteaud 2020-05-29 09:34:41 +02:00
parent 905bfdce90
commit 85fb39af13
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ while (<STDIN>) {
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;
}