Changed the arrangement of bytes in the universe
authorArt Cancro <ajc@citadel.org>
Fri, 22 Dec 2023 15:52:57 +0000 (10:52 -0500)
committerArt Cancro <ajc@citadel.org>
Fri, 22 Dec 2023 15:52:57 +0000 (10:52 -0500)
webcit-ng/Makefile
webcit-ng/api.txt
webcit-ng/server/caldav_reports.c
webcit-ng/server/room_functions.c

index 8c8e317fe952a4d9d156aa8d22846686b628be50..c29a595c8522bd927f2384687bd7cf251f100274 100644 (file)
@@ -1,3 +1,8 @@
+# Copyright (c) 1996-2023 by the citadel.org team
+#
+# This program is open source software.  Use, duplication, or
+# disclosure are subject to the GNU General Public License v3.
+
 CFLAGS := $(CFLAGS) -ggdb -Wno-format-truncation
 LDFLAGS := $(LDFLAGS)
 
index 378b5b59a252040d870726ec05ed4fce041270c9..8660c8f2ca7d20f17fc0a243d90e3247993fb963 100644 (file)
@@ -1,7 +1,9 @@
 Method          URL                                Function
 ------          ------------------------------     -------------------------------------
 GET             /                                  Site root will redirect to a landing page
+
 GET             /ctdl/f/                           returns a JSON-encoded list of accessible floors
+
 GET             /ctdl/r/                           returns a JSON-encoded list of accessible rooms
 OPTIONS         /ctdl/r/<roomname>/                returns just what you'd expect
 PROPFIND        /ctdl/r/<roomname>/                Show a bunch of crap
@@ -14,8 +16,8 @@ GET             /ctdl/r/<roomname>/stat            JSON dictionary of the server
 GET             /ctdl/r/<roomname>/<msgnum>        Retrieve the content of an individual message
 GET             /ctdl/r/<roomname>/<msgnum>/json   Retrieve an individual message in a room, encapsulated in JSON
 GET             /ctdl/r/<roomname>/<msgnum>/<part> Retrieve a MIME component of a message, specified by partnum
-DELETE          /ctdl/r/<roomname>/<msgnum>        Deletes a message from a room
-MOVE            /ctdl/r/<roomname>/<msgnum>        Moves a message to another room (requires Destination)
+DELETE          /ctdl/r/<roomname>/<msgnum>        Delete a message from a room
+MOVE            /ctdl/r/<roomname>/<msgnum>        Move a message to another room (requires Destination)
 
 PUT             /ctdl/r/<roomname>/<xxx>           DAV operation to insert a new message into a room
                 Accepted parameters:
index dbaa9c5971ed2430fc9340ed57ae693b11ecac6e..d30894968e68343c63e76dcefc7277569abcea52 100644 (file)
@@ -145,7 +145,7 @@ StrBuf *fetch_ical(struct ctdlsession * c, long msgnum) {
 
 // Called by caldav_report() to output a single item.
 // Our policy is to throw away the list of properties the client asked for, and just send everything.
-void caldav_response(struct http_transaction *h, struct ctdlsession *c, StrBuf * ReportOut, StrBuf * ThisHref) {
+void caldav_response(struct http_transaction *h, struct ctdlsession *c, StrBuf *ReportOut, StrBuf *ThisHref) {
        long msgnum;
        StrBuf *Caldata = NULL;
        char *euid;
index a58197120664519b7607f2bbae3c93aa1d9d61b3..8d8ca3bcc5113c670c5a48161a5b630a39d1a858 100644 (file)
@@ -422,9 +422,10 @@ void propfind_the_room_itself(struct http_transaction *h, struct ctdlsession *c)
                if (msglist) {
                        int i;
                        for (i = 0; (msglist[i] > 0); ++i) {
-                               if ((i % 10) == 0)
+                               if ((i % 10) == 0) {
                                        syslog(LOG_DEBUG, "PROPFIND enumerated %d messages", i);
-                               e = NULL;       // EUID gets stored here
+                               }
+                               e = NULL;               // EUID gets stored here
                                timestamp = 0;
 
                                char cbuf[1024];