$Log$
+ Revision 573.78 2001/02/03 08:21:00 error
+ * serv_ical.c and serv_ical.h added; skeleton code for now
+
Revision 573.77 2001/02/02 20:18:18 ajc
* Changed the error message in cdb_delete() to actually *say* cdb_delete
instead of cdb_store. Useful to know which function failed...
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
modules/serv_moderate$(SO) \
modules/serv_bio$(SO) \
modules/serv_expire$(SO) \
- modules/serv_vandelay$(SO)
+ modules/serv_vandelay$(SO) \
+ modules/serv_ical$(SO)
UTIL_TARGETS=aidepost netmailer netproc netsetup msgform readlog rcit \
stats citmail netpoll mailinglist userlist sendcommand \
base64 qpdecode
domain.c clientsocket.c serv_inetcfg.c serv_rwho.c serv_bio.c \
serv_moderate.c client_passwords.c \
serv_imap.c imap_tools.c imap_fetch.c imap_search.c \
- serv_network.c serv_pas2.c md5.c
+ serv_network.c serv_pas2.c serv_ical.c md5.c
DEP_FILES=$(SOURCES:.c=.d)
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(PTHREAD_DEFS) -c $< -o $@
.c.mo:
- @mkdir -p modules
+ @test -d modules || mkdir -p modules
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $(PTHREAD_DEFS) $(PICFLAGS) -DPIC -c $< -o $@
modules/serv_chat.so: serv_chat.mo
modules/md5.mo: md5.mo
ln -f md5.mo modules
+modules/serv_ical.so: serv_ical.mo
+ $(LINK_SHARED) -o modules/serv_ical.so serv_ical.mo
+
+modules/serv_ical.mo: serv_ical.mo
+ ln -f serv_ical.mo modules
+
#
--- /dev/null
+/*
+ * $Id$
+ *
+ * This module implements iCalendar object processing and the My Calendar>
+ * room on a Citadel/UX server. It handles iCalendar objects using the
+ * iTIP protocol. See RFCs 2445 and 2446.
+ *
+ */
+
+#include <unistd.h>
+#include <sys/types.h>
+#include <limits.h>
+#include <stdio.h>
+#include "sysdep.h"
+#include "serv_ical.h"
+#include "citadel.h"
+#include "server.h"
+#include "citserver.h"
+#include "sysdep_decls.h"
+#include "support.h"
+#include "config.h"
+#include "dynloader.h"
+
+
+/* Tell clients what level of support to expect */
+void cmd_ical(char *argbuf)
+{
+ /* argbuf is not used */
+ if (!(CC->logged_in)) {
+ cprintf("%d Not logged in.\n", ERROR+NOT_LOGGED_IN);
+ return;
+ }
+
+ cprintf("%d I (will) support|ICAL,ITIP\n", OK);
+ return;
+}
+
+
+int ical_obj_beforesave(struct CtdlMessage *msg)
+{
+ return 0;
+}
+
+
+int ical_obj_aftersave(struct CtdlMessage *msg)
+{
+ return 0;
+}
+
+
+/* Register this module with the Citadel server. */
+char *Dynamic_Module_Init(void)
+{
+ CtdlRegisterMessageHook(ical_obj_beforesave, EVT_BEFORESAVE);
+ CtdlRegisterMessageHook(ical_obj_aftersave, EVT_AFTERSAVE);
+ CtdlRegisterProtoHook(cmd_ical, "ICAL", "Register iCalendar support");
+ return "$Id$";
+}
--- /dev/null
+/*
+ * $Id$
+ *
+ * iCalendar implementation for Citadel/UX
+ *
+ */
+
+
+/* Hrm, we don't have anything to put here yet... */