From 7e89783c9f59160ac3116c6ce800bb11c6e0f46f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 18 Jul 2022 14:00:12 +0200 Subject: [PATCH] * Mail/Sieve: fix vacation notice activated by date does not work if the start date is set in future --- api/src/Mail/Script.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/Mail/Script.php b/api/src/Mail/Script.php index 07647b7c72..12da4fe7f8 100644 --- a/api/src/Mail/Script.php +++ b/api/src/Mail/Script.php @@ -427,8 +427,7 @@ class Script $defaultaddr = $sieve->user . '@' . $sieve->maildomain; array_push($vacation['addresses'],$defaultaddr); } - if (($vacation['status'] == 'on' && strlen(trim($vacation['text']))>0)|| $vacation['status'] == 'by_date' && - $vacation['start_date'] <= time() && time() < $vacation['end_date']+24*3600) // +24*3600 to include the end_date day + if (($vacation['status'] == 'on' && strlen(trim($vacation['text']))>0)|| $vacation['status'] == 'by_date') // +24*3600 to include the end_date day { $vacation_active = true; if ($vacation['text'])