From: Art Cancro Date: Mon, 29 Jan 2024 16:09:52 +0000 (-0500) Subject: Codified plans for world domination X-Git-Tag: v997~4 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=bcffb8b3fb56f66a0fdc50cf57c4154e8bfb1dd0 Codified plans for world domination --- diff --git a/citadel/server/modules/calendar/calendar_report.c b/citadel/server/modules/calendar/calendar_report.c index f547967dc..b5e52db19 100644 --- a/citadel/server/modules/calendar/calendar_report.c +++ b/citadel/server/modules/calendar/calendar_report.c @@ -41,18 +41,19 @@ void calendar_query_backend(long msgnum, void *data) { if (ird.cal == NULL) return; // If there was no calendar item in this message, do nothing else. + // This is where we need to perform our search reduction. + + char *ser = icalcomponent_as_ical_string_r(ird.cal); if (ser) { - size_t len = strlen(ser); + size_t len = strlen(ser); // Output the object, ensuring it terminates with a newline. client_write(ser, len); if ( (len>0) && (ser[len-1] != '\n') ) { - syslog(LOG_DEBUG, "last char was %d", ser[len]); client_write(HKEY("\n")); } free(ser); } - icalcomponent_free(ird.cal); // Return the memory we got from the callback. } @@ -82,5 +83,3 @@ void calendar_query(void) { cprintf("000\n"); } - -