Alet Roux
2008-Sep-30 15:44 UTC
[iCalendar-devel] How to get icalendar to ignore nonconforming properties?
Hi, I''m using icalendar to parse an ICal file that was generated by KOrganizer. The problem comes when parsing ICal entries like BEGIN:VJOURNAL DTSTAMP:20080929T171106Z CREATED:20060802T092541Z UID:libkcal-540603334.724 SEQUENCE:2 LAST-MODIFIED:20060802T133609Z DESCRIPTION:What I did that day SUMMARY:What I did that day PRIORITY:5 DTSTART;VALUE=DATE:20060802 END:VJOURNAL Here KOrganizer has added the PRIORITY property to this entry, and since this is not in RFC-2445, this entry cannot be parsed, and my code crashes with the exception "Method Name: priority". Is it possible to make it such that nonconforming entries are simply ignored, so that the rest of the file can be parsed? In this case, for example, I would be more than happy if the priority is never assigned because it obviously makes no sense for a journal entry to have a priority. I am fairly new to Ruby, so I apologise if this is a silly question. I have had a good look at the documentation, but have not found anything that would help with this. Best wishes Alet -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/icalendar-devel/attachments/20080930/1197aea4/attachment.html>