From 15cae2e64a6330a9f08efbbc6876c687dd26bdcc Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 21 Aug 2022 09:52:13 +0000 Subject: [PATCH] change regex to capture text before and after noreply, no-reply and bounce --- VIRTUAL_VACATION/vacation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 88ced38..3563081 100755 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -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); }