1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Caldav: move calendar on displayname update

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1266 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-24 22:59:44 +00:00
parent 809f16311b
commit 204c57fb5e

View File

@ -632,6 +632,9 @@ public class CaldavConnection extends AbstractConnection {
* @throws IOException on error * @throws IOException on error
*/ */
public void patchCalendar(CaldavRequest request) throws IOException { 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); CaldavResponse response = new CaldavResponse(HttpStatus.SC_MULTI_STATUS);
response.startMultistatus(); response.startMultistatus();
// just ignore calendar folder proppatch (color not supported in Exchange) // just ignore calendar folder proppatch (color not supported in Exchange)
@ -1221,7 +1224,7 @@ public class CaldavConnection extends AbstractConnection {
buildDepth(); buildDepth();
this.body = body; this.body = body;
if (isPropFind() || isReport() || isMkCalendar()) { if (isPropFind() || isReport() || isMkCalendar() || isPropPatch()) {
parseXmlBody(); parseXmlBody();
} }
} }