mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02: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:
parent
809f16311b
commit
204c57fb5e
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user