diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 6d4c6fe..9e6e5c1 100755 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -77,8 +77,8 @@ while (my $line = <>) { my ($stream, $version, $timestamp, $subsystem, $event, $sid, $token, $data) = split /\|/, $line; if ($line =~ m/data-line/) { if (!$data) { $data = ""; } - if ($data =~ m/^precedence:\s+(bulk|list|junk)/i) { $ooo{$sid} = 0; } - if ($data =~ m/^list-(help|id|owner|post|subscribe|unsubscribe):.*/i) { $ooo{$sid} = 0; } + if ($data =~ m/^precedence:\s+(bulk|list|junk)/i) { $ooo{$sid} = 0; print "Virtual Vacation: header found $data\n" if ($opt_d); } + if ($data =~ m/^list-(help|id|owner|post|subscribe|unsubscribe):.*/i) { $ooo{$sid} = 0; print "Virtual Vacation: header found $data\n" if ($opt_d); } if ($data =~ m/^x-loop:\s+opensmtpd\ admin\ virtual\ vacation/i) { $ooo{$sid} = 0; } print STDOUT "filter-dataline|$sid|$token|$data\n"; }