home
|
pages
|
back
|
start
|
windows
|
SIP
|
pushover
|
esxi
|
esc
|
debian
|
linux-bash
|
linux-bash-fn
|
linux-bash-code
|
awk-sed
|
git
|
keepass
|
php
|
ipmi
|
openvpn
|
nextcloud
|
studium
|
2110
|
https://docs.nextcloud.com/server/22/admin_manual/groupware/calendar.html#trash-bin https://help.nextcloud.com/t/how-to-delete-old-entries-of-calendar/122632/5 https://help.nextcloud.com/t/dav-report-not-supported/103328/6 curl -u user:password -X REPORT 'http://server-ip/remote.php/dav/files/user/' --data '<?xml version="1.0" encoding="utf-8"?> <oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"> <d:prop> <d:getcontentlength /> <d:getcontenttype /> <d:getetag /> <d:getlastmodified /> <d:lockdiscovery /> <d:resourcetype /> <oc:comments-unread /> <oc:favorites /> <oc:fileid /> <oc:owner-display-name /> <oc:permissions /> <oc:share-types /> <oc:size /> <oc:tags /> </d:prop> <oc:filter-rules> <oc:systemtag>2</oc:systemtag> </oc:filter-rules> </oc:filter-files>' from https://github.com/meonkeys/ow/blob/main/ow debug(f'🔍 search for events in calendar {calendar} older than {minimumAge}...') (startTime,endTime) = buildTimeRange(minimumAge) _requestBody = f'''<?xml version="1.0"?> <x1:calendar-query xmlns:x1="urn:ietf:params:xml:ns:caldav"> <x0:prop xmlns:x0="DAV:"> <x1:calendar-data/> </x0:prop> <x1:filter> <x1:comp-filter name="VCALENDAR"> <x1:comp-filter name="VEVENT"> <x1:time-range start="{startTime}" end="{endTime}"/> </x1:comp-filter> </x1:comp-filter> </x1:filter> </x1:calendar-query>'''