From 12d7b08725001436a0b3281475737171f3afa6f1 Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 8 Jan 2009 10:35:06 +0000 Subject: [PATCH] Fix : do not apply past event limit to recurring events (=> missing events in calendar for old recurring events) git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@282 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index ce3be226..8ac1edc8 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -888,10 +888,10 @@ public class ExchangeSession { "\n" + " Select \"DAV:getetag\", \"urn:schemas:calendar:instancetype\"" + " FROM Scope('SHALLOW TRAVERSAL OF \"" + calendarUrl + "\"')\n" + - " WHERE NOT \"urn:schemas:calendar:instancetype\" = 2\n" + - " AND NOT \"urn:schemas:calendar:instancetype\" = 3\n" + - " AND \"DAV:contentclass\" = 'urn:content-classes:appointment'\n" + + " WHERE (\"urn:schemas:calendar:instancetype\" = 1\n" + + " OR (\"urn:schemas:calendar:instancetype\" = 0\n" + dateCondition + + " )) AND \"DAV:contentclass\" = 'urn:content-classes:appointment'\n" + " ORDER BY \"urn:schemas:calendar:dtstart\" DESC\n" + " \n" + "";