+/*
+ * $Id$
+ *
+ * Functions which handle calendar objects and their processing/display.
+ *
+ */
+
+#include <ctype.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/socket.h>
+#include <limits.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <string.h>
+#include <pwd.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <pthread.h>
+#include <signal.h>
+#include "webcit.h"
+#include "webserver.h"
+
+#ifdef HAVE_ICAL_H
+#include <ical.h>
+#endif
+
+
+#ifndef HAVE_ICAL_H
+
+/*
+ * Handler stub for builds with no calendar library available
+ */
+void cal_process_attachment(char *part_source) {
+
+ wprintf("<I>This message contains calendaring/scheduling information,"
+ " but support for calendars is not available on this "
+ "particular system. Please ask your system administrator to "
+ "install a new version of the Citadel web service with "
+ "calendaring enabled.</I><BR>\n"
+ );
+
+}
+
+#else /* HAVE_ICAL_H */
+
+/*
+ * Handler stub for builds with no calendar library available
+ */
+void cal_process_attachment(char *part_source) {
+
+ wprintf("<B><I>This is a calendar object. "
+ "Handler coming soon!</I></B><BR>");
+
+}
+
+#endif /* HAVE_ICAL_H */