// RFC4791 7.8 "calendar-query" REPORT - Client will send a lot of search criteria.
if (crp.report_type == cr_calendar_query) {
- // FIXME build this REPORT. At the moment we send an empty multistatus.
+ int i = 0;
+ Array *msglist = get_msglist(c, "ALL");
+ if (msglist != NULL) {
+ for (i = 0; i < array_len(msglist); ++i) {
+ long m;
+ memcpy(&m, array_get_element_at(msglist, i), sizeof(long));
+ TRACE;
+ syslog(LOG_DEBUG, "evaluating message %ld", m);
+ }
+ array_free(msglist);
+ }
}
// RFC4791 7.9 "calendar-multiget" REPORT - go get the specific Hrefs the client asked for.
+ // Can we move this back into citserver too?
else if ( (crp.report_type == cr_calendar_multiget) && (crp.Hrefs != NULL) ) {
+
StrBuf *ThisHref = NewStrBuf();
const char *pvset = NULL;
while (StrBufExtract_NextToken(ThisHref, crp.Hrefs, &pvset, '|') >= 0) {