$Log$
+Revision 625.27 2005/09/28 03:19:13 ajc
+* "Reply" and "ReplyAll" now quote the original message, but only when
+ it's private mail.
+* For non-mail, a "ReplyQuoted" button is now present.
+* "Move" and "Delete" are now present for a user's mailbox rooms.
+* Improved the <blockquote> style.
+
Revision 625.26 2005/09/27 02:12:13 ajc
* When clicking on an email address in a vCard to send the person an
email message, use the display name plus the email address.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
wprintf("<td align=right>\n");
/* Reply */
- wprintf("<a href=\"/display_enter?recp=");
- urlescputs(reply_to);
- wprintf("?subject=");
- if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
- urlescputs(m_subject);
- wprintf("\">[%s]</a> ", _("Reply"));
+ if ( (WC->wc_view == VIEW_MAILBOX) || (WC->wc_view == VIEW_BBS) ) {
+ wprintf("<a href=\"/display_enter");
+ if (WC->is_mailbox) {
+ wprintf("?replyquote=%ld", msgnum);
+ }
+ wprintf("?recp=");
+ urlescputs(reply_to);
+ wprintf("?subject=");
+ if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
+ urlescputs(m_subject);
+ wprintf("\">[%s]</a> ", _("Reply"));
+ }
+
+ /* ReplyQuoted */
+ if ( (WC->wc_view == VIEW_MAILBOX) || (WC->wc_view == VIEW_BBS) ) {
+ if (!WC->is_mailbox) {
+ wprintf("<a href=\"/display_enter");
+ wprintf("?replyquote=%ld", msgnum);
+ wprintf("?recp=");
+ urlescputs(reply_to);
+ wprintf("?subject=");
+ if (strncasecmp(m_subject, "Re:", 3)) wprintf("Re:%20");
+ urlescputs(m_subject);
+ wprintf("\">[%s]</a> ", _("ReplyQuoted"));
+ }
+ }
/* ReplyAll */
if (WC->wc_view == VIEW_MAILBOX) {
- wprintf("<a href=\"/display_enter?recp=");
+ wprintf("<a href=\"/display_enter");
+ wprintf("?replyquote=%ld", msgnum);
+ wprintf("?recp=");
urlescputs(reply_to);
wprintf("?cc=");
urlescputs(reply_all);
/* Forward */
if (WC->wc_view == VIEW_MAILBOX) {
- wprintf("<a href=\"/display_enter?pullquote=%ld?subject=", msgnum);
+ wprintf("<a href=\"/display_enter?fwdquote=%ld?subject=", msgnum);
if (strncasecmp(m_subject, "Fwd:", 4)) wprintf("Fwd:%20");
urlescputs(m_subject);
wprintf("\">[%s]</a> ", _("Forward"));
* If there were attachments, we have to download them and insert them
* into the attachment chain for the forwarded message we are composing.
*/
- if (num_attachments) {
+ if ( (forward_attachments) && (num_attachments) ) {
for (i=0; i<num_attachments; ++i) {
extract_token(buf, attachments, i, '\n', sizeof buf);
extract_token(mime_filename, buf, 1, '|', sizeof mime_filename);
wprintf("<textarea name=\"msgtext\" cols=\"80\" rows=\"15\">");
msgescputs(bstr("msgtext"));
- if (atol(bstr("pullquote")) > 0L) {
+ if (atol(bstr("fwdquote")) > 0L) {
wprintf("<br><div align=center><i>");
wprintf(_("--- forwarded message ---"));
wprintf("</i></div><br>");
- pullquote_message(atol(bstr("pullquote")), 1);
+ pullquote_message(atol(bstr("fwdquote")), 1);
+ }
+ else if (atol(bstr("replyquote")) > 0L) {
+ wprintf("<br>"
+ "<blockquote>");
+ pullquote_message(atol(bstr("replyquote")), 0);
+ wprintf("</blockquote>");
}
wprintf("</textarea>");
wprintf("</center><br />\n");
color: #000088;
}
+/* Quote Levels Colors */
blockquote {
- margin-left: 8%;
- margin-right: 8%;
- border: thin ridge #dc143c;
+ color: navy !important; background-color: RGB(245,245,245) !important;
+}
+blockquote blockquote {
+ color: maroon !important; background-color: RGB(235,235,235) !important;
+}
+blockquote blockquote blockquote {
+ color: green !important; background-color: RGB(225,225,225) !important;
+}
+blockquote blockquote blockquote blockquote {
+ color: purple !important; background-color: RGB(215,215,215) !important;
+}
+blockquote blockquote blockquote blockquote blockquote {
+ color: teal !important; background-color: RGB(205,205,205) !important;
}
blockquote pre {