From 5eb3fd2569c6d808ae0b30baecbdd55b68ec7709 Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 10 Sep 2009 23:45:40 +0000 Subject: [PATCH] Caldav: fix multi calendar Exchange path for sub folders git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@715 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 41034e81..e38d0413 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -435,7 +435,7 @@ public class CaldavConnection extends AbstractConnection { "0"); } if (request.hasProperty("getetag")) { - response.appendProperty("D:getetag", session.getFolderResourceTag(request.getExchangeFolderPath(subFolder))); + response.appendProperty("D:getetag", "0"); } if (request.hasProperty("displayname")) { response.appendProperty("D:displayname", "outbox"); @@ -1283,7 +1283,12 @@ public class CaldavConnection extends AbstractConnection { */ public String getExchangeFolderPath() throws IOException { if ("users".equals(getPathElement(1))) { - return session.buildCalendarPath(getPathElement(2), getPathElement(3)); + StringBuilder calendarPath = new StringBuilder(); + calendarPath.append(getPathElement(3)); + for (int i=4;i