"Reply" works. "Reply-All" needs more work.
authorArt Cancro <ajc@citadel.org>
Wed, 26 Oct 2022 21:41:46 +0000 (17:41 -0400)
committerArt Cancro <ajc@citadel.org>
Wed, 26 Oct 2022 21:41:46 +0000 (17:41 -0400)
webcit-ng/static/css/webcit.css
webcit-ng/static/js/view_mail.js

index b0e4461b91087b540997188a5d4c073387c3dca3..122f3df79f72e424c9f5c9f1088267d85732b2f0 100644 (file)
@@ -497,7 +497,10 @@ blockquote pre {
 
 .ctdl-compose-to-line {
        grid-area: ctdl-compose-to-line;
-       padding: 0.5vw;
+       padding-left: 0;
+       padding-right: 0.5vw;
+       padding-top: 0.5vw;
+       padding-bottom: 1px;
        border-bottom: 1px solid Grey;
        margin-right: 0.5vw;
        display: flex;
@@ -522,10 +525,13 @@ blockquote pre {
 
 .ctdl-compose-cc-field {
        grid-area: ctdl-compose-cc-field;
-       padding: 0.5vw;
        border-bottom: 1px solid Grey;
        margin-right: 0.5vw;
        display: none;
+       padding-left: 0;
+       padding-right: 0.5vw;
+       padding-top: 0.5vw;
+       padding-bottom: 0;
 }
 
 .ctdl-compose-bcc-label {
@@ -536,7 +542,10 @@ blockquote pre {
 
 .ctdl-compose-bcc-field {
        grid-area: ctdl-compose-bcc-field;
-       padding: 0.5vw;
+       padding-left: 0;
+       padding-right: 0.5vw;
+       padding-top: 0.5vw;
+       padding-bottom: 0;
        border-bottom: 1px solid Grey;
        margin-right: 0.5vw;
        display: none;
@@ -549,7 +558,10 @@ blockquote pre {
 
 .ctdl-compose-subject-field {
        grid-area: ctdl-compose-subject-field;
-       padding: 0.5vw;
+       padding-left: 0;
+       padding-right: 0.5vw;
+       padding-top: 0.5vw;
+       padding-bottom: 0;
        border-bottom: 1px solid Grey;
        margin-right: 0.5vw;
 }
index aed72f99bd6488184eda5ae00b4bf8f8be5bb10e..e1acae54f8dc4ec97afe89ba10c97730da1ff9a7 100644 (file)
@@ -10,6 +10,17 @@ var selected_message = 0;                                                    // Remember the last message that was selected
 var RefreshMailboxInterval;                                                    // We store our refresh timer here
 
 
+// Render reply address for a message (FIXME we might want to figure out in-reply-to)
+function reply_addr(msg) {
+       if (msg.locl) {
+               return(msg.from);
+       }
+       else {
+               return(msg.from + " &lt;" + msg.rfca + "&gt;");
+       }
+}
+
+
 // Render a message into the mailbox view
 // (We want the message number and the message itself because we need to keep the msgnum for reply purposes)
 function mail_render_one(msgnum, msg, target_div, include_controls) {
@@ -33,7 +44,7 @@ function mail_render_one(msgnum, msg, target_div, include_controls) {
                        + "<span class=\"ctdl-msg-header-buttons\">"            // begin buttons on right side
                
                        + "<span class=\"ctdl-msg-button\">"                    // Reply (mail is always Quoted)
-                       + "<a href=\"javascript:mail_compose(true,'"+msg.wefw+"','"+msgnum+"', '', '', 'Re: '+msg.subj);\">"
+                       + "<a href=\"javascript:mail_compose(true,'"+msg.wefw+"','"+msgnum+"', reply_addr(msg), '', 'Re: '+msg.subj);\">"
                        + "<i class=\"fa fa-reply\"></i> " 
                        + _("Reply")
                        + "</a></span>"