From a8c886e17e2ac9d6a54fd517550d24a820890e03 Mon Sep 17 00:00:00 2001 From: mischa Date: Sat, 20 Aug 2022 10:39:13 +0000 Subject: [PATCH] move OOO done to proper place --- VIRTUAL_VACATION/vacation.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 1f5f9be..f048b70 100755 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -125,17 +125,16 @@ 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; + delete $ooo{$sid}; + dolog($fh, "$sid removed session - OOO done", $opt_l); } else { delete $ooo{$sid}; - dolog($fh, "$sid removed session - cache hit", $opt_l); + dolog($fh, "$sid removed session - OOO 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 not found for $email", $opt_l); } - } elsif ($line =~ m/data-line/ && $data eq '.' && $ooo{$sid} == 0) { delete $ooo{$sid}; dolog($fh, "$sid removed session - OOO skip", $opt_l);