[Freeassociation-devel] How to add a new component

Brad Hards bradh at frogmouth.net
Sun Dec 28 00:17:19 PST 2008


I'm trying to implement MS-OXCICAL for openchange's 
(http://www.openchange.org) exchange2ical utility. It currently has some 
problems that we think libical can help with.

I'm using the VObject API to build up the tree, and it mostly works pretty 
well. 

However I'd like to produce something like:
BEGIN:VEVENT
.... (various property / values omitted here)
BEGIN:VALARM
TRIGGER:-PT10080M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT

I've tried to use code like:
	valarm = addProp(vevent, VCDAlarmProp);
	addPropValue(valarm, "ACTION", "DISPLAY");
	addPropValue(valarm, "DESCRIPTION", "Reminder");

But I get 
BEGIN:VEVENT
...
DALARM;TRIGGER=-PT30M;ACTION=DISPLAY;DESCRIPTION=Reminder:
END:VEVENT

I'd like the BEGIN: / END: format, and I want VALARM, not DALARM.

I'd also like to be able to nest these (to handle TIMEZONE components 
containing STANDARD and DAYLIGHT components).

Any suggestions? Ideally I'd like to use an unmodified version of libical, and 
just do whatever changes are required in the client code.

Brad




More information about the libical-devel mailing list