summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 5c028bf..3a3a4d1 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -147,11 +147,12 @@ def get_etags(conn, hrefs=[]):
body += '</C:calendar-multiget>'
else:
body = ('<?xml version="1.0" encoding="utf-8" ?>'
- '<C:calendar-query xmlns:D="DAV:" '
- ' xmlns:C="urn:ietf:params:xml:ns:caldav">'
- '<D:prop><D:getetag /></D:prop>'
- '<C:filter><C:comp-filter name="VCALENDAR" /></C:filter>'
- '</C:calendar-query>')
+ '<sync-collection xmlns="DAV:"><sync-token/><sync-level>1</sync-level><prop><getcontenttype/><getetag/></prop></sync-collection>')
+# '<C:calendar-query xmlns:D="DAV:" '
+# ' xmlns:C="urn:ietf:params:xml:ns:caldav">'
+# '<D:prop><D:getetag /></D:prop>'
+# '<C:filter><C:comp-filter name="VCALENDAR" /></C:filter>'
+# '</C:calendar-query>')
headers, body = remote_query(conn, "REPORT", path, {}, body)
if not headers:
return {}