]> code.citadel.org Git - citadel.git/commitdiff
Calendar service now handles icalendar objects that may
authorArt Cancro <ajc@citadel.org>
Sun, 18 Mar 2007 03:55:06 +0000 (03:55 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 18 Mar 2007 03:55:06 +0000 (03:55 +0000)
or may not be buried inside multipart MIME messages, in the following places:
* Calendar display in WebCit
* Free/busy output
* Conflict checking
* webcal output

citadel/serv_calendar.c

index f41e1706abaa4465560051de90147a34aea331d9..aa859d025abdd8b09fe31362196f7f14f0a57e75 100644 (file)
@@ -971,8 +971,8 @@ void ical_hunt_for_conflicts(icalcomponent *cal) {
 
        cprintf("%d Conflicting events:\n", LISTING_FOLLOWS);
 
-       /* FIXME CONNECTOR DEV -- we need to handle calendar items embedded inside multipart */
-       CtdlForEachMessage(MSGS_ALL, 0, NULL, "^[Tt][Ee][Xx][Tt]/[Cc][Aa][Ll][Ee][Nn][Dd][Aa][Rr]$",
+       CtdlForEachMessage(MSGS_ALL, 0, NULL,
+               NULL,
                NULL,
                ical_hunt_for_conflicts_backend,
                (void *) cal
@@ -1277,10 +1277,7 @@ void ical_freebusy(char *who) {
 
        /* Add busy time from events */
        lprintf(CTDL_DEBUG, "Adding busy time from events\n");
-       /* FIXME CONNECTOR DEV -- we need to handle calendar items embedded inside multipart */
-       CtdlForEachMessage(MSGS_ALL, 0, NULL, "^[Tt][Ee][Xx][Tt]/[Cc][Aa][Ll][Ee][Nn][Dd][Aa][Rr]$",
-               NULL, ical_freebusy_backend, (void *)fb
-       );
+       CtdlForEachMessage(MSGS_ALL, 0, NULL, NULL, NULL, ical_freebusy_backend, (void *)fb );
 
        /* If values for DTSTART and DTEND are still not present, set them
         * to yesterday and tomorrow as default values.
@@ -1418,9 +1415,8 @@ void ical_getics(void)
        icalcomponent_set_method(encaps, ICAL_METHOD_PUBLISH);
 
        /* Now go through the room encapsulating all calendar items. */
-       /* FIXME CONNECTOR DEV -- we need to handle calendar items embedded inside multipart */
        CtdlForEachMessage(MSGS_ALL, 0, NULL,
-               "^[Tt][Ee][Xx][Tt]/[Cc][Aa][Ll][Ee][Nn][Dd][Aa][Rr]$",
+               NULL,
                NULL,
                ical_getics_backend,
                (void *) encaps