]> code.citadel.org Git - citadel.git/commitdiff
* Display attendees in message view of calendar objects
authorArt Cancro <ajc@citadel.org>
Tue, 10 Dec 2002 23:25:47 +0000 (23:25 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 10 Dec 2002 23:25:47 +0000 (23:25 +0000)
webcit/ChangeLog
webcit/calendar.c
webcit/event.c

index b88f0b2eb54cfe52a830db1c50549538a5d94043..76fb79219a2ea466885a45e51e0ba0a09bc7faf4 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 400.62  2002/12/10 23:25:47  ajc
+* Display attendees in message view of calendar objects
+
 Revision 400.61  2002/12/07 22:12:59  ajc
 * Handle incoming RSVP's for meetings.  (Note: this will not actually work
   until I implement the Citadel server function which it calls.)
@@ -1161,4 +1164,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index c6950e8b4977bf497ec98a58857418f682b85e02..423583060b122606e5a91f699fe799ae4e1b8625 100644 (file)
@@ -198,7 +198,13 @@ void cal_process_object(icalcomponent *cal,
        /* If the component has attendees, iterate through them. */
        for (p = icalcomponent_get_first_property(cal, ICAL_ATTENDEE_PROPERTY); (p != NULL); p = icalcomponent_get_next_property(cal, ICAL_ATTENDEE_PROPERTY)) {
                wprintf("<TR><TD><B>Attendee:</B></TD><TD>");
-               escputs("FIXME display attendee");
+               strcpy(buf, icalproperty_get_attendee(p));
+               if (!strncasecmp(buf, "MAILTO:", 7)) {
+                       strcpy(buf, &buf[7]);
+                       striplt(buf);
+                       escputs(buf);
+               }
+               /* FIXME add status */
                wprintf("</TD></TR>\n");
        }
 
index dda0dded03b1cd8d30523656342e23dca08f3cea..be58c3bb15c406acded70004f751f4a4965792eb 100644 (file)
@@ -219,8 +219,8 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
                );
        }
 
-       /* Determine who is the organizer of this event.  This is useless
-        * for now, but we'll need to determine "me" or "not me" soon.
+       /* Determine who is the organizer of this event.
+        * We need to determine "me" or "not me."
         */
        organizer = icalcomponent_get_first_property(vevent,
                                                ICAL_ORGANIZER_PROPERTY);