]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/server/calendar_functions.c
moar skeleton
[citadel.git] / webcit-ng / server / calendar_functions.c
index 820de037a184fa6e98ac36b39d4c2e95c8b7626d..73305d7336dd4467db74bba8f48102a4cd589f25 100644 (file)
 
 // Client is requesting a message list
 void calendar_msglist(struct http_transaction *h, struct ctdlsession *c, char *range) {
+
+       // Begin by requesting all messages in the room
+       int i = 0;
+       Array *msglist = get_msglist(c, "ALL");
+       if (msglist == NULL) {
+               do_404(h);
+               return;
+       }
+
+       for (i = 0; i < array_len(msglist); ++i) {
+               long m;
+               memcpy(&m, array_get_element_at(msglist, i), sizeof(long));
+               syslog(LOG_DEBUG, "FIXME %ld", m);
+       }
+       array_free(msglist);
+
+       // FIXME we still fail because we aren't finished yet
        do_404(h);
 }