+// Copyright (c) 2016-2023 by the citadel.org team
//
-// 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.
+// This program is open source software. Use, duplication, or
+// disclosure is subject to the GNU General Public License v3.
+
+// Placeholder for when we add i18n later
+function _(x) {
+ return x;
+}
+
+
+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 is_room_aide = 0;
+var is_trash_folder = 0;
+var room_mtime = 0;
+var can_delete_messages = 0;
+var messages_per_page = 20;
+var march_list = [] ;
+var new_mail = 0;
// List of defined views shamelessly swiped from libcitadel headers
-//
var views = {
VIEW_BBS : 0, // Bulletin board view
VIEW_MAILBOX : 1, // Mailbox summary
VIEW_QUEUE : 11, // SMTP queue rooms
VIEW_WIKIMD : 12, // markdown wiki (no longer implemented)
};
+
+// new mail sound (we'll make it selectable later)
+const new_mail_sound = new Audio("/ctdl/s/sounds/hi_from_stu.wav");