-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep string properties of VCALENDAR #141
Comments
This seems to be a quite old change before I took over the project, see here: However, i dunno what the purpose of this change was. Perhaps its time to ditch it if there is a good reason and example ics where we can test it on. |
Sure. Here you go:
The simplest calendar that can be. No events at all. Created with Google Calendar web interface. Available from this url also: https://calendar.google.com/calendar/ical/3bafqi1jabdlhhmbvsr7gf39dg%40group.calendar.google.com/public/basic.ics Can be tweaked for tests if needed. |
What's interesting is that radicale generates iCal with these properties instead:
that result in object properties that are not being deleted.
They are pain to access as |
We've commented out that
see: I can confirm that google's ICS output outputs these extensions like so:
|
@jens-maus looks like that change was made to keep pace with the original project (non-node) version of this library. I wish there was a discussion of it in either project. It's hard to see what the reasoning was and there are useful properties one misses out on because of it. Maybe I could submit a PR to make it optional behavior? |
Many different ICAL generators, namely MS Exchange, Google Calendars, Apple Calendar, add string properties to VCALENDAR that should be kept during parsing.
E.g. X-WR-CALNAME is an extremely important string property, as well as X-WR-RELCALID, X-WR-CALDESC, X-PRIMARY-CALENDAR and actually all others.
However, current node-ical contains code that intentionally removes all string properties from VCALENDAR component. See here:
node-ical/ical.js
Line 354 in 4195ab2
What's the point of that removal?
The text was updated successfully, but these errors were encountered: