From ba0fa5e054b43fe2dc13a6050f261e506be096b5 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 7 Jul 2023 08:52:40 -0900 Subject: [PATCH] DAV MOVE method wasn't documented. Documented it. --- webcit-ng/api.txt | 1 + webcit-ng/server/caldav_reports.c | 3 +-- webcit-ng/server/ctdl_commands.c | 1 - webcit-ng/server/ctdlfunctions.c | 1 - webcit-ng/server/floor_functions.c | 1 - webcit-ng/server/html2html.c | 1 - webcit-ng/server/messages.c | 3 +-- webcit-ng/server/tcp_sockets.c | 1 - webcit-ng/server/text2html.c | 1 - 9 files changed, 3 insertions(+), 10 deletions(-) diff --git a/webcit-ng/api.txt b/webcit-ng/api.txt index cbab2b92c..67e13b4a2 100644 --- a/webcit-ng/api.txt +++ b/webcit-ng/api.txt @@ -14,6 +14,7 @@ GET /ctdl/r/ROOMNAME/stat JSON dictionary of the server ST 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 DELETE /ctdl/r/ROOMNAME/MSGNUM Deletes a message from a room +MOVE /ctdl/r/ROOMNAME/MSGNUM Moves a message to another room (requires Destination) PUT /ctdl/r/ROOMNAME/xxx DAV operation to insert a new message into a room Accepted parameters: diff --git a/webcit-ng/server/caldav_reports.c b/webcit-ng/server/caldav_reports.c index 9bcca613f..ff60dfedc 100644 --- a/webcit-ng/server/caldav_reports.c +++ b/webcit-ng/server/caldav_reports.c @@ -1,4 +1,3 @@ -// // This file contains functions which handle all of the CalDAV "REPORT" queries // specified in RFC4791 section 7. // @@ -130,7 +129,7 @@ StrBuf *fetch_ical(struct ctdlsession * c, long msgnum) { // webcit[13039]: room=0000000001.Calendar // webcit[13039]: node=uncnsrd // webcit[13039]: hnod=Uncensored -// webcit[13039]: exti=040000008200E00074C5B7101A82E0080000000080C728F83E84C801000000000000000010000000E857E0DC57F53947ADF0BB91EE3A502F +// webcit[13039]: exti=040000E00074C5B7101A82E0080000000080C728F83E84C801000000000000000010000000E857E0DC57F53947ADF0BB91EE3A502F // webcit[13039]: subj==?UTF-8?B?V2VzbGV5J3MgYmlydGhkYXkgcGFydHk= // webcit[13039]: ?= // webcit[13039]: part=||1||text/calendar|1127|| diff --git a/webcit-ng/server/ctdl_commands.c b/webcit-ng/server/ctdl_commands.c index 6420a8750..2637d9e25 100644 --- a/webcit-ng/server/ctdl_commands.c +++ b/webcit-ng/server/ctdl_commands.c @@ -1,4 +1,3 @@ -// // Copyright (c) 1996-2022 by the citadel.org team // // This program is open source software. Use, duplication, or diff --git a/webcit-ng/server/ctdlfunctions.c b/webcit-ng/server/ctdlfunctions.c index ba25fd637..371dbc828 100644 --- a/webcit-ng/server/ctdlfunctions.c +++ b/webcit-ng/server/ctdlfunctions.c @@ -1,4 +1,3 @@ -// // These utility functions loosely make up a Citadel protocol client library. // // Copyright (c) 2016-2022 by the citadel.org team diff --git a/webcit-ng/server/floor_functions.c b/webcit-ng/server/floor_functions.c index ccb632668..7dff4dbec 100644 --- a/webcit-ng/server/floor_functions.c +++ b/webcit-ng/server/floor_functions.c @@ -1,4 +1,3 @@ -// // Floor functions // // Copyright (c) 1996-2022 by the citadel.org team diff --git a/webcit-ng/server/html2html.c b/webcit-ng/server/html2html.c index ab37b7b08..02e5ed791 100644 --- a/webcit-ng/server/html2html.c +++ b/webcit-ng/server/html2html.c @@ -1,4 +1,3 @@ -// // Output an HTML message, modifying it slightly to make sure it plays nice // with the rest of our web framework. // diff --git a/webcit-ng/server/messages.c b/webcit-ng/server/messages.c index c5dda5bbc..81896c7b5 100644 --- a/webcit-ng/server/messages.c +++ b/webcit-ng/server/messages.c @@ -1,4 +1,3 @@ -// // Message base functions // // Copyright (c) 1996-2022 by the citadel.org team @@ -113,7 +112,7 @@ void dav_get_message(struct http_transaction *h, struct ctdlsession *c, long msg if (v) { *v = 0; ++v; - string_trim(v); // we now have a key (k) and a value (v) + string_trim(v); // we now have a key (k) and a value (v) if ((!strcasecmp(k, "content-type")) // fields which can be passed from RFC822 to HTTP as-is || (!strcasecmp(k, "date")) ) { diff --git a/webcit-ng/server/tcp_sockets.c b/webcit-ng/server/tcp_sockets.c index 5de373ac9..5d4fbc254 100644 --- a/webcit-ng/server/tcp_sockets.c +++ b/webcit-ng/server/tcp_sockets.c @@ -1,4 +1,3 @@ -// // TCP sockets layer // // Copyright (c) 1987-2022 by the citadel.org team diff --git a/webcit-ng/server/text2html.c b/webcit-ng/server/text2html.c index 1a1bf1420..b6def65ac 100644 --- a/webcit-ng/server/text2html.c +++ b/webcit-ng/server/text2html.c @@ -1,4 +1,3 @@ -// // Convert text/plain to text/html // // Copyright (c) 2017-2022 by the citadel.org team -- 2.39.2