mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
79 stars 45 forks source link

do something on calendar put event #84

Open f1-outsourcing opened 4 months ago

f1-outsourcing commented 4 months ago

I am not really sure if I describe this correctly. Say a user is putting a new calendar item into their calendar with the subject "exportthiseventtodisk", how do I go about checking this efficiently, when these calendar items are received by the server so in the case of this example, copy the item to disk?

Should I analyse content when it is being received or are there 'things' in cosmo I can use to trigger the save action? I would expect these cases of having the subject "exportthiseventtodisk" to be very rare. Maybe 1 in 5000 or even less.

 BEGIN:VCALENDAR
 PRODID:-//xyz Corp//NONSGML PDA Calendar Version 1.0//EN
 VERSION:2.0
 BEGIN:VEVENT
 DTSTAMP:19960704T120000Z
 UID:uid1@example.com
 ORGANIZER:mailto:jsmith@example.com
 DTSTART:19960918T143000Z
 DTEND:19960920T220000Z
 STATUS:CONFIRMED
 CATEGORIES:CONFERENCE
 SUMMARY:exportthiseventtodisk
 DESCRIPTION:Networld+Interop Conference
   and Exhibit\nAtlanta World Congress Center\n
  Atlanta\, Georgia
 END:VEVENT
 END:VCALENDAR