X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit-ng%2Fstatic%2Fjs%2Fview_mail.js;h=535d0f1f793875d5aca2c4e542e3fb02b8933444;hb=954e5749b5e0102f8598fcc19fc10267f31a6cda;hp=f3ee2acfab91bf6b4b2546cd1b3ab41106c119a2;hpb=d4e8b9166607cc418e714c86716b55eb1f0ec116;p=citadel.git diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index f3ee2acfa..535d0f1f7 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -1,31 +1,173 @@ +// This module handles the view for "mailbox" rooms. +// // Copyright (c) 2016-2022 by the citadel.org team // // This program is open source software. Use, duplication, or // disclosure are subject to the GNU General Public License v3. +var selected_message = 0; // Remember the last message that was selected +var RefreshMailboxInterval; // We store our refresh timer here + + +// Render a message into the mailbox view +function mail_render_one(msg, target_div) { + let div = "FIXME"; + try { + outmsg = + "
" + _("Subject") + " | " + "" + _("Sender") + " | " + "" + _("Date") + " | " @@ -33,21 +175,16 @@ function mail_display() { + "" + msgs[i]["subject"] + " | " - + "" + msgs[i]["author"] + " <" + msgs[i]["addr"] + "> | " - + "" + convertTimestamp(msgs[i]["time"]) + " | " - + "" + msgs[i]["msgnum"] + " | " - + ""; + box += mail_render_row(msgs[i]); } box += "
---|