Subject: | Support for alarm type 'none' |
Data-ICal-0.19
Perl 5.12.4
Mac OS X 10.8.2
Data::ICal::Entry's alarm parsing routine dies on any alarm type it doesn't recognize. Newer versions of Apple's calendar software have been automatically adding 'ACTION:NONE' alarms (not exactly what for), causing _parse_valarm to die with a "Can't parse VALARM with action NONE' message. I've dealt with this in my own code for the time being locally modifying the %_action_map hash that maps alarms to object types:
my %_action_map = (
AUDIO => 'Audio',
DISPLAY => 'Display',
EMAIL => 'Email',
PROCEDURE => 'Procedure',
NONE => 'Display'
);
But obviously there either needs to be a class for the 'None's, or a more forgiving parser. Just letting you know.