is_quoted is now determined by whether quoted_msgnum is nonzero.
In mail, we always pull quote for replies.
PUT /ctdl/r/<roomname>/<xxx> DAV operation to insert a new message into a room
Accepted parameters:
PUT /ctdl/r/<roomname>/<xxx> DAV operation to insert a new message into a room
Accepted parameters:
- wefw List of message references
+ wefw List of message references, separated by "!" delimiter
subj Message subject
The returned ETag will be the new message number.
subj Message subject
The returned ETag will be the new message number.
+ "<span class=\"ctdl-msg-header-buttons\">" // begin buttons on right side
+ "<span class=\"ctdl-msg-button\">" // Reply
+ "<span class=\"ctdl-msg-header-buttons\">" // begin buttons on right side
+ "<span class=\"ctdl-msg-button\">" // Reply
- + `<a href="javascript:mail_compose(true, msg.wefw, ${msgnum}, reply_addr(msg), [], 'Re: ${subject}');">`
+ + `<a href="javascript:mail_compose(msg.wefw, ${msgnum}, reply_addr(msg), [], 'Re: ${subject}');">`
+ "<i class=\"fa fa-reply\"></i> "
+ _("Reply")
+ "</a></span>"
+ "<span class=\"ctdl-msg-button\">" // Reply-All
+ "<i class=\"fa fa-reply\"></i> "
+ _("Reply")
+ "</a></span>"
+ "<span class=\"ctdl-msg-button\">" // Reply-All
- + `<a href="javascript:mail_compose(true, msg.wefw, ${msgnum}, replyall_to(msg), msg.cccc, 'Re: ${subject}');">`
+ + `<a href="javascript:mail_compose(msg.wefw, ${msgnum}, replyall_to(msg), msg.cccc, 'Re: ${subject}');">`
+ "<i class=\"fa fa-reply-all\"></i> "
+ _("ReplyAll")
+ "</a></span>"
+ "<span class=\"ctdl-msg-button\">" // Forward FIXME
+ "<i class=\"fa fa-reply-all\"></i> "
+ _("ReplyAll")
+ "</a></span>"
+ "<span class=\"ctdl-msg-button\">" // Forward FIXME
+ + `<a href="javascript:mail_compose(msg.wefw, ${msgnum}, [], [], 'Re: ${subject}');">`
+ "<i class=\"fa fa-mail-forward\"></i> "
+ _("Forward")
+ "</a></span>";
+ "<i class=\"fa fa-mail-forward\"></i> "
+ _("Forward")
+ "</a></span>";
// Compose a new mail message (called by the Reply button here, or by the dispatcher in views.js)
//
// Compose a new mail message (called by the Reply button here, or by the dispatcher in views.js)
//
-// is_quoted true or false depending on whether the user selected "reply quoted" (is this appropriate for mail?)
// references list of references, be sure to use this in a reply
// quoted_msgnum if a reply, the msgid of the most recent message in the chain, the one to which we are replying
// references list of references, be sure to use this in a reply
// quoted_msgnum if a reply, the msgid of the most recent message in the chain, the one to which we are replying
+// (set to 0 if this is not a reply)
// m_to an ARRAY of zero or more recipients to pre-insert into the To: field
// m_cc an ARRAY of zero or more recipients to pre-insert into the Cc: field
// m_subject a string to pre-insert into the Subject: field
//
// m_to an ARRAY of zero or more recipients to pre-insert into the To: field
// m_cc an ARRAY of zero or more recipients to pre-insert into the Cc: field
// m_subject a string to pre-insert into the Subject: field
//
-function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subject) {
+function mail_compose(references, quoted_msgnum, m_to, m_cc, m_subject) {
+ let is_quoted = (quoted_msgnum > 0) ? true : false ;
// m_to will be an array of zero or more recipients for the To: field. Convert it to a string.
m_to_str = recipient_array_to_string(m_to);
// m_to will be an array of zero or more recipients for the To: field. Convert it to a string.
m_to_str = recipient_array_to_string(m_to);
forum_entmsg();
break;
case views.VIEW_MAILBOX:
forum_entmsg();
break;
case views.VIEW_MAILBOX:
- mail_compose(false, "", 0, "", "", "");
+ mail_compose("", 0, [], [], "");