]> code.citadel.org Git - citadel.git/blobdiff - webcit/event.c
buybuy plaintext important message.
[citadel.git] / webcit / event.c
index 0f6168d1d072ed86f2d29529dd7968a5a5f55635..6ae2a5ac35adb25d6d0603633c2ed6ae5b53703f 100644 (file)
@@ -44,7 +44,10 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
        char buf[SIZ];
        int organizer_is_me = 0;
        int i, j = 0;
+       /************************************************************
+        * Uncomment this to see the UID in calendar events for debugging
        int sequence = 0;
+       */
        char weekday_labels[7][32];
        char month_labels[12][32];
        long weekstart = 0;
@@ -157,10 +160,12 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
 
        /* Learn the sequence */
        p = icalcomponent_get_first_property(vevent, ICAL_SEQUENCE_PROPERTY);
+       /************************************************************
+        * Uncomment this to see the UID in calendar events for debugging
        if (p != NULL) {
                sequence = icalproperty_get_sequence(p);
        }
-
+       */
        /* Begin output */
        output_headers(1, 1, 2, 0, 0, 0);
        wc_printf("<div id=\"banner\">\n");
@@ -1165,7 +1170,7 @@ STARTOVER:        for (attendee = icalcomponent_get_first_property(vevent, ICAL_ATTENDE
                                }
                        }
                        if (buf[0] == '2') {
-                               strcpy(WC->ImportantMessage, &buf[4]);
+                               StrBufAppendBufPlain(WC->ImportantMsg, buf, -1, 4);
                        }
                        icalmemory_free_ring ();
                        icalcomponent_free(encaps);
@@ -1206,7 +1211,7 @@ STARTOVER:        for (attendee = icalcomponent_get_first_property(vevent, ICAL_ATTENDE
        /* If this was a save or delete, go back to the calendar or summary view. */
        if (!havebstr("check_button")) {
                if (!strcasecmp(bstr("calview"), "summary")) {
-                       summary();
+                       do_template("summary_page");
                }
                else {
                        readloop(readfwd, eUseDefault);