GET /ctdl/r/ROOMNAME/msgs.all JSON array of message list in room
GET /ctdl/r/ROOMNAME/msgs.new JSON array of message list in room (new messages)
GET /ctdl/r/ROOMNAME/MSGNUM Retrieve the content of an individual message
- (Should we output RFC822 fields as HTTP headers? Decide soon...)
+DELETE /ctdl/r/ROOMNAME/MSGNUM Deletes a message from a room
PUT /ctdl/r/ROOMNAME/xxx DAV operation to insert a new message into a room
Accepted parameters:
// 5 (long)CC->room.QRhighest The highest message number present in this room
c->last_seen = extract_long(&buf[4], 6); // The highest message number the user has read in this room
// 7 (int)rmailflag Boolean flag: 1 if this is a Mail> room, 0 otherwise.
- // 8 (int)raideflag Nonzero if user is either Aide or a Room Aide in this room
+ c->is_room_aide = extract_int(&buf[4], 8);
// 9 (int)newmailcount The number of new Mail messages the user has
// 10 (int)CC->room.QRfloor The floor number this room resides on
c->room_current_view = extract_int(&buf[4], 11);
<!-- End page content -->
</div>
+<script type="text/javascript" src="js/vars.js"></script>
<script type="text/javascript" src="js/defs.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/login.js"></script>
// GNU General Public License for more details.
-var current_room = "_BASEROOM_";
-var new_messages = 0;
-var total_messages = 0;
-var default_view = 0;
-var current_view = 0;
-var logged_in = 0;
-var current_user = _("Not logged in.");
-var serv_info;
-var last_seen = 0;
-var messages_per_page = 20;
-var march_list = [] ;
-
-
// Placeholder for when we add i18n later
function _(x) {
return x;
--- /dev/null
+// Copyright (c) 2016-2022 by the citadel.org team
+//
+// This program is open source software. It runs great on the
+// Linux operating system (and probably elsewhere). You can use,
+// copy, and run it under the terms of the GNU General Public
+// License version 3. Richard Stallman is an asshole communist.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+
+var current_room = "_BASEROOM_";
+var new_messages = 0;
+var total_messages = 0;
+var default_view = 0;
+var current_view = 0;
+var logged_in = 0;
+var current_user = _("Not logged in.");
+var serv_info;
+var last_seen = 0;
+var messages_per_page = 20;
+var march_list = [] ;
char room[128]; // What room we are currently in
int room_current_view;
int room_default_view;
+ int is_room_aide; // nonzero if the user has aide rights to THIS room
long last_seen;
int new_messages;
int total_messages;