3 // Copyright (c) 1996-2023 by the citadel.org team
5 // This program is open source software. Use, duplication, or
6 // disclosure are subject to the GNU General Public License v3.
11 // Client is requesting a message list
12 void calendar_msglist(struct http_transaction *h, struct ctdlsession *c, char *range) {
14 // Determine the date/time range requested by the client
15 time_t lo = atol(range);
16 char *colon = strchr(range, ':');
17 time_t hi = colon ? atol(++colon) : LONG_MAX;
19 // Rule out impossible ranges
25 // Begin by requesting all messages in the room
27 Array *msglist = get_msglist(c, "ALL");
28 if (msglist == NULL) {
33 for (i = 0; i < array_len(msglist); ++i) {
35 memcpy(&m, array_get_element_at(msglist, i), sizeof(long));
36 syslog(LOG_DEBUG, "FIXME %ld", m);
39 // 1. fetch the message from citadel server
41 // 3. figure out range
42 // we should steal code from webcit-classic for this
47 // FIXME we still fail because we aren't finished yet