change regex to include bounce.*

This commit is contained in:
mischa 2022-08-19 12:37:26 +00:00
parent 2373ac4f5b
commit 9a0d82b9bc
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ while (my $line = <>) {
$ooo{$sid} = 1;
$from = $address;
print $fh "Virtual Vacation: created session $sid\n" if ($opt_d);
if ($from =~ m/(postmaster|noreply|no-reply|bounce)@/i) { $ooo{$sid} = 0; }
if ($from =~ m/^(postmaster|noreply|no-reply|bounce.*)@/i) { $ooo{$sid} = 0; }
} elsif ($event eq "tx-mail" && $code ne "ok") {
$ooo{$sid} = 0;
}