arran4 / golang-ical

A ICS / ICal parser and serialiser for Golang.
Apache License 2.0
279 stars 72 forks source link

Properties appearing more than once #89

Open fleaz opened 3 months ago

fleaz commented 3 months ago

Hey,

first of all thanks for this library. I know how hard iCAL can be :D

I was trying to check if a repeated event has been deleted and wanted to access the "EXDATE" property. According to the RFC, some properties CAN occur more than once like e.g. EXDATE, but with the GetProperty() function I will always only get the first entry of an event and not all of them. Depending on the library which generated the ical file, the EXDATE can either appear only once and have all dates comma separated in a single line or appear multiple times with only a single date, which to my knowledge is both RFC compliant.

I have tested an ical File from NextCloud and from DaviCAL and both use the style with single dates in separate EXDATE entries. If you need something to test, here is a simple calendar from my NextCloud with a repeating event and two EXDATE entries: https://dump.felixbreidenstein.de/test.ics

Best, Felix