Codified plans for world domination
authorArt Cancro <ajc@citadel.org>
Mon, 29 Jan 2024 16:09:52 +0000 (11:09 -0500)
committerArt Cancro <ajc@citadel.org>
Mon, 29 Jan 2024 16:09:52 +0000 (11:09 -0500)
citadel/server/modules/calendar/calendar_report.c

index f547967dcc71c2afdccee905daa7088a7a7ec1c2..b5e52db19445ca112cad3962a49999264decff60 100644 (file)
@@ -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");
 }
-
-