1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

Caldav: Workaround for Lightning 1.0pre public calendar, send calendar href as inbox/outbox urls

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@890 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-12-20 20:56:13 +00:00
parent 9424b1e639
commit b8e3a2aafc

View File

@ -779,6 +779,15 @@ public class CaldavConnection extends AbstractConnection {
if (request.hasProperty("schedule-outbox-URL")) {
response.appendHrefProperty("C:schedule-outbox-URL", "/users/" + actualPrincipal + "/outbox");
}
} else {
// public calendar, send calendar href as inbox url
if (request.hasProperty("schedule-inbox-URL")) {
response.appendHrefProperty("C:schedule-inbox-URL", '/' + prefix + '/' + actualPrincipal);
}
if (request.hasProperty("schedule-outbox-URL")) {
response.appendHrefProperty("C:schedule-outbox-URL", '/' + prefix + '/' + actualPrincipal);
}
}
if (request.hasProperty("displayname")) {