From 34f6ad5cfa6da7f1e54e019aa76e25e4ae6ec7dc Mon Sep 17 00:00:00 2001 From: mischa Date: Sat, 20 Aug 2022 10:31:47 +0000 Subject: [PATCH] add specific cache hit session remove --- VIRTUAL_VACATION/vacation.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 6ea43a6..1f5f9be 100755 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -125,12 +125,15 @@ while (my $line = <>) { print $fh_email "Content-Type: text/plain; charset=utf-8\n\n"; print $fh_email "$vacation_msg[1]\n"; close $fh_email; + } else { + delete $ooo{$sid}; + dolog($fh, "$sid removed session - cache hit", $opt_l); } delete $ooo{$sid}; dolog($fh, "$sid removed session - OOO done", $opt_l); } else { delete $ooo{$sid}; - dolog($fh, "$sid removed session - OOO cache hit", $opt_l); + dolog($fh, "$sid removed session - OOO not found for $email", $opt_l); } } elsif ($line =~ m/data-line/ && $data eq '.' && $ooo{$sid} == 0) {