mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 19:39:26 +01:00
* eMail/eSync: when no truncation date is set, use 12 weeks as hard coded limit (as some clients die, when confronted with too many mails)
This commit is contained in:
parent
244327710b
commit
cc620c6a45
@ -1525,8 +1525,8 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi
|
|||||||
debugLog (__METHOD__.' for Folder:'.$folderid.' SINCE:'.$cutdate.'/'.date("d-M-Y", $cutdate));
|
debugLog (__METHOD__.' for Folder:'.$folderid.' SINCE:'.$cutdate.'/'.date("d-M-Y", $cutdate));
|
||||||
if (empty($cutdate))
|
if (empty($cutdate))
|
||||||
{
|
{
|
||||||
$cutdate = egw_time::to('now','ts')-(3600*24*28);
|
$cutdate = egw_time::to('now','ts')-(3600*24*28*3);
|
||||||
debugLog(__METHOD__.' Client set no truncationdate. Using 4 weeks.'.date("d-M-Y", $cutdate));
|
debugLog(__METHOD__.' Client set no truncationdate. Using 12 weeks.'.date("d-M-Y", $cutdate));
|
||||||
}
|
}
|
||||||
return $this->fetchMessages($folderid, $cutdate);
|
return $this->fetchMessages($folderid, $cutdate);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user