- /* 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)) {
- StrBufAppendPrintf(Target, "<dt>");
- StrBufAppendPrintf(Target, _("Attendee:"));
- StrBufAppendPrintf(Target, "</dt><dd>");
- ch = icalproperty_get_attendee(p);
- if ((ch != NULL) && !strncasecmp(buf, "MAILTO:", 7)) {
-
- /** screen name or email address */
- safestrncpy(buf, ch + 7, sizeof(buf));
- striplt(buf);
- StrEscAppend(Target, NULL, buf, 0, 0);
- StrBufAppendPrintf(Target, " ");
-
- /** participant status */
- partstat_as_string(buf, p);
- StrEscAppend(Target, NULL, buf, 0, 0);
- }
- StrBufAppendPrintf(Target, "</dd>\n");
- }