.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;
.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 {
.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;
.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;
}
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 + " <" + msg.rfca + ">");
+ }
+}
+
+
// 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) {
+ "<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>"