1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-12 22:18:11 -05:00

Caldav: 0 or no value in caldavPastDelay means no limit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1003 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-04-14 20:01:51 +00:00
parent 1df2e961ed
commit 2c36e396d8

View File

@ -2592,9 +2592,9 @@ public class ExchangeSession {
* @throws IOException on error
*/
public List<Event> getAllEvents(String folderPath) throws IOException {
int caldavPastDelay = Settings.getIntProperty("davmail.caldavPastDelay", Integer.MAX_VALUE);
int caldavPastDelay = Settings.getIntProperty("davmail.caldavPastDelay");
String dateCondition = "";
if (caldavPastDelay != Integer.MAX_VALUE) {
if (caldavPastDelay != 0) {
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DAY_OF_MONTH, -caldavPastDelay);
dateCondition = " AND \"urn:schemas:calendar:dtstart\" > '" + formatSearchDate(cal.getTime()) + "'\n";