How to cancel an calendar event using ics files?

蹲街弑〆低调 提交于 2019-11-28 11:18:12
anmari

File gets created in the same way as the original ics file. The event status will be different. UID will identify the event and sequence number will indicate priority of update, and then the event details will be noted (changes or cancellations)

If you want to change/cancel an event after sending out an invitation, you need to identify the event/appointment by its UID, and allocate a bigger SEQUENCE number than the original ics event.

UID (unique identifier) : http://tools.ietf.org/html/rfc5545#page-117

Sequence: http://tools.ietf.org/html/rfc5545#page-138

and set the event status

             / "CANCELLED"    ;Indicates event was cancelled.

Status: http://tools.ietf.org/html/rfc5545#page-92

oh - and method If you need to send in a cancellation for an event the UID should be same as the original event and the component properties should be set to cancel Ex. METHOD:CANCEL STATUS:CANCELLED

Of course this will only 'cancel' the event if the recipient then actually clicks to load/subscribe it into the same calendar app as the first time. For applications that have 'subscribed' the the remote ics - when they next do an 'update' check the update should be processed and overwrite the original event.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!