// 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);
}