projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
64ad144
)
Codified plans for world domination
author
Art Cancro
<ajc@citadel.org>
Mon, 29 Jan 2024 16:09:52 +0000
(11:09 -0500)
committer
Art Cancro
<ajc@citadel.org>
Mon, 29 Jan 2024 16:09:52 +0000
(11:09 -0500)
citadel/server/modules/calendar/calendar_report.c
patch
|
blob
|
history
diff --git
a/citadel/server/modules/calendar/calendar_report.c
b/citadel/server/modules/calendar/calendar_report.c
index f547967dcc71c2afdccee905daa7088a7a7ec1c2..b5e52db19445ca112cad3962a49999264decff60 100644
(file)
--- 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.
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) {
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') ) {
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);
}
client_write(HKEY("\n"));
}
free(ser);
}
-
icalcomponent_free(ird.cal); // Return the memory we got from the callback.
}
icalcomponent_free(ird.cal); // Return the memory we got from the callback.
}
@@
-82,5
+83,3
@@
void calendar_query(void) {
cprintf("000\n");
}
cprintf("000\n");
}
-
-