Adapt regex to match queued emails when spam filtering is disabled
This commit is contained in:
parent
905bfdce90
commit
85fb39af13
|
@ -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…
Reference in New Issue