]> code.citadel.org Git - citadel.git/blobdiff - webcit/calendar.c
* ical_dezonify.c: added.
[citadel.git] / webcit / calendar.c
index ad5b34b5e357e5102067a5e5cc7b08e699db3c73..dffbe339e97b42e0057637671f7428be02ef644f 100644 (file)
@@ -327,6 +327,7 @@ void cal_process_attachment(char *part_source, long msgnum, char *cal_partnum) {
                return;
        }
 
+       ical_dezonify(cal);
        cal_process_object(cal, 0, msgnum, cal_partnum);
 
        /* Free the memory we obtained from libical's constructor */
@@ -723,6 +724,8 @@ void display_using_handler(long msgnum,
                        cal = icalcomponent_new_from_string(relevant_source);
                        if (cal != NULL) {
 
+                               ical_dezonify(cal);
+
                                /* Simple components of desired type */
                                if (icalcomponent_isa(cal) == which_kind) {
                                        callback(cal, msgnum);