From 204c57fb5ed8839362b1eba056964af13080fb29 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sat, 24 Jul 2010 22:59:44 +0000 Subject: [PATCH] Caldav: move calendar on displayname update git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1266 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index f10e8e76..eb6c3e67 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -632,6 +632,9 @@ public class CaldavConnection extends AbstractConnection { * @throws IOException on error */ public void patchCalendar(CaldavRequest request) throws IOException { + if (request.hasProperty("displayname")) { + session.moveFolder(request.getFolderPath(), request.getParentFolderPath()+'/'+request.getProperty("displayname")); + } CaldavResponse response = new CaldavResponse(HttpStatus.SC_MULTI_STATUS); response.startMultistatus(); // just ignore calendar folder proppatch (color not supported in Exchange) @@ -1221,7 +1224,7 @@ public class CaldavConnection extends AbstractConnection { buildDepth(); this.body = body; - if (isPropFind() || isReport() || isMkCalendar()) { + if (isPropFind() || isReport() || isMkCalendar() || isPropPatch()) { parseXmlBody(); } }