}
the_reply = icalcomponent_new_clone(request);
- ical_dezonify(the_reply);
if (the_reply == NULL) {
lprintf(3, "ERROR: cannot clone request\n");
return;
}
if (strcasecmp(partnum, ird->desired_partnum)) return;
ird->cal = icalcomponent_new_from_string(content);
- ical_dezonify(ird->cal);
+ if (ird->cal != NULL) {
+ ical_dezonify(ird->cal);
+ }
}
icalcomponent_free(oec->c);
}
oec->c = icalcomponent_new_from_string(content);
- ical_dezonify(oec->c);
}
/* Clone the reply, because we're going to rip its guts out. */
reply = icalcomponent_new_clone(reply);
- ical_dezonify(reply);
/* At this point we're looking at the correct subcomponents.
* Iterate through the attendees looking for a match.
lprintf(3, "ERROR: cannot clone calendar object\n");
return;
}
- ical_dezonify(the_request);
/* Extract the summary string -- we'll use it as the
* message subject for the request
/* Set the method to REQUEST */
icalcomponent_set_method(encaps, ICAL_METHOD_REQUEST);
- /* FIXME: here we need to insert a VTIMEZONE object. */
+ /* Now make sure all of the DTSTART and DTEND properties are UTC. */
+ ical_dezonify(the_request);
/* Here we go: put the VEVENT into the VCALENDAR. We now no longer
* are responsible for "the_request"'s memory -- it will be freed
*/
if (!strcasecmp(cbtype, "text/calendar")) {
cal = icalcomponent_new_from_string(content);
- ical_dezonify(cal);
if (cal != NULL) {
p = ical_ctdl_get_subprop(cal, ICAL_UID_PROPERTY);
if (p != NULL) {
if (!strcasecmp(cbtype, "text/calendar")) {
cal = icalcomponent_new_from_string(content);
if (cal != NULL) {
- ical_dezonify(cal);
ical_saving_vevent(cal);
icalcomponent_free(cal);
}