Expanding recurring events in CalDAV

后端 未结 1 1481
情话喂你
情话喂你 2021-01-22 07:47

Suppose a CalDAV client is really dumb (deeply embedded) and unable to calculate recurring events by itself. It is, however capable of putting in CalDAV requests. Suppose a CalD

相关标签:
1条回答
  • 2021-01-22 08:00

    This may be a limitation in Radicale, CalDAV itself does support recurrence expansion: RFC 4791 Section 7.8.3. The sample shown in the RFC:

    REPORT /bernard/work/ HTTP/1.1
    Host: cal.example.com
    Depth: 1
    Content-Type: application/xml; charset="utf-8"
    Content-Length: xxxx
    
    <?xml version="1.0" encoding="utf-8" ?>
    <C:calendar-query xmlns:D="DAV:"
                      xmlns:C="urn:ietf:params:xml:ns:caldav">
      <D:prop>
        <C:calendar-data>
          <C:expand start="20060103T000000Z"
                    end="20060105T000000Z"/>
        </C:calendar-data>
      </D:prop>
      <C:filter>
        <C:comp-filter name="VCALENDAR">
          <C:comp-filter name="VEVENT">
            <C:time-range start="20060103T000000Z"
                          end="20060105T000000Z"/>
          </C:comp-filter>
        </C:comp-filter>
      </C:filter>
    </C:calendar-query>
    
    0 讨论(0)
提交回复
热议问题