* eSync/Mail/Calendar: limit request for all mail and events to 1 year back, instead of previous 178 or 100 days

This commit is contained in:
ralf 2024-05-15 16:07:54 +02:00
parent 8b250157eb
commit ebb213ddbb
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ class calendar_zpush implements activesync_plugin_write, activesync_plugin_meeti
$type = $user = null; $type = $user = null;
$this->backend->splitID($id,$type,$user); $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( $filter = array(
'users' => $user, 'users' => $user,

View File

@ -68,7 +68,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
static $profileID; static $profileID;
// to control how deep one may dive into the past // to control how deep one may dive into the past
const PAST_LIMIT = 178; const PAST_LIMIT = 365;
/** /**
* debugLevel - enables more debug * debugLevel - enables more debug