From ebb213ddbb05e346920e11a77de74ca71342c88d Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 15 May 2024 16:07:54 +0200 Subject: [PATCH] * eSync/Mail/Calendar: limit request for all mail and events to 1 year back, instead of previous 178 or 100 days --- calendar/inc/class.calendar_zpush.inc.php | 2 +- mail/inc/class.mail_zpush.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_zpush.inc.php b/calendar/inc/class.calendar_zpush.inc.php index ef29cae610..b01541d7e7 100644 --- a/calendar/inc/class.calendar_zpush.inc.php +++ b/calendar/inc/class.calendar_zpush.inc.php @@ -187,7 +187,7 @@ class calendar_zpush implements activesync_plugin_write, activesync_plugin_meeti $type = $user = null; $this->backend->splitID($id,$type,$user); - if (!$cutoffdate) $cutoffdate = time() - 100*24*3600; // default three month back -30 breaks all sync recurrences + if (!$cutoffdate) $cutoffdate = time() - 365*24*3600; // limit all to 1 year (-30 breaks all sync recurrences) $filter = array( 'users' => $user, diff --git a/mail/inc/class.mail_zpush.inc.php b/mail/inc/class.mail_zpush.inc.php index 9ee92fb1cc..0e26c671ef 100644 --- a/mail/inc/class.mail_zpush.inc.php +++ b/mail/inc/class.mail_zpush.inc.php @@ -68,7 +68,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail, static $profileID; // to control how deep one may dive into the past - const PAST_LIMIT = 178; + const PAST_LIMIT = 365; /** * debugLevel - enables more debug