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
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}
}