4 * Functions which handle calendar objects and their processing/display.
14 #include <sys/types.h>
16 #include <sys/socket.h>
18 #include <netinet/in.h>
27 #include "webserver.h"
37 * Handler stub for builds with no calendar library available
39 void cal_process_attachment(char *part_source) {
41 wprintf("<I>This message contains calendaring/scheduling information,"
42 " but support for calendars is not available on this "
43 "particular system. Please ask your system administrator to "
44 "install a new version of the Citadel web service with "
45 "calendaring enabled.</I><BR>\n"
50 #else /* HAVE_ICAL_H */
53 * Handler stub for builds with no calendar library available
55 void cal_process_attachment(char *part_source) {
58 wprintf("Processing calendar attachment<BR>\n");
59 cal = icalcomponent_new_from_string(part_source);
62 wprintf("Error parsing calendar object: %s<BR>\n",
63 icalerror_strerror(icalerrno));
67 wprintf("Parsing went well. Cool.<BR>\n");
69 /* Free the memory we obtained from libical's constructor */
70 icalcomponent_free(cal);
73 #endif /* HAVE_ICAL_H */