Merging iCalendar files together

From Arnout Engelen

Jump to: navigation, search

iCalendar objects, according to the rfc, have the following format:

icalobject = 1*("BEGIN" ":" "VCALENDAR" CRLF
                  icalbody
                  "END" ":" "VCALENDAR" CRLF)

As '1*' means '1 or more', the standard allows us to merge iCalendar files together by simply catting them to each other. Nice ;).

A quick script could accept a list of URL's in GET or POST (preferably POST, as a list of URL's might get long), would fetch the calendars, cat them together and return them.

However, merging iCalendars together in this fashion is probably not often what you want, as the performance of the entire feed would equal the performance of the slowest source from the list.

Personal tools