1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-11-10 11:25:00 -05:00

Return a calendar etag

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@272 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-01-02 16:07:49 +00:00
parent 4d80841b7b
commit 23549bfcac

View File

@ -300,9 +300,14 @@ public class CaldavConnection extends AbstractConnection {
buffer.append(" <D:href>/principals/users/").append(principal).append("</D:href>\n");
buffer.append(" </D:owner>\n");
}
if (request.hasProperty("getetag")) {
buffer.append(" <D:getetag>")
.append(base64Encode(session.getCalendarCtag()))
.append("</D:getetag>\n");
}
if (request.hasProperty("getctag")) {
buffer.append(" <CS:getctag xmlns:CS=\"http://calendarserver.org/ns/\">")
.append(base64Encode(session.getCalendarEtag()))
.append(base64Encode(session.getCalendarCtag()))
.append("</CS:getctag>\n");
}
if (request.hasProperty("displayname")) {