change regex to capture text before and after noreply, no-reply and bounce

This commit is contained in:
mischa 2022-08-21 09:52:13 +00:00
parent ad41b4cd4d
commit 15cae2e64a
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ while (my $line = <>) {
$ooo{$sid} = 1;
$from = $address;
dolog($fh, "$sid created session", $opt_l);
if ($from =~ m/^(postmaster|hostmaster|noreply.*|no-reply.*|bounce.*)@/i) {
if ($from =~ m/^(postmaster|hostmaster)@|.*(noreply|no-reply|bounce).*@/i) {
$ooo{$sid} = 0;
dolog($fh, "$sid from skip $from", $opt_l);
}