if (pass == 1) {
wprintf("<TR BGCOLOR=\"#AAAAAA\">"
"<TD COLSPAN=2 BGCOLOR=\"#FFFFFF\">"
- "<IMG ALIGN=CENTER SRC=\"/static/vcard.gif\">"
+ "<IMG ALIGN=CENTER SRC=\"/static/viewcontacts_48x.gif\">"
"<FONT SIZE=+1><B>");
escputs(displayname);
wprintf("</B></FONT>");
"<A HREF=\"/output_mimepart?"
"msgnum=%ld&partnum=%s\" "
"TARGET=\"wc.%ld.%s\">"
- "<IMG SRC=\"/static/attachment.gif\" "
+ "<IMG SRC=\"/static/diskette_24x.gif\" "
"BORDER=0 ALIGN=MIDDLE>\n"
"Part %s: %s (%s, %d bytes)</A><br />\n",
msgnum, mime_partnum,
strcpy(summ.from, &buf[5]);
}
if (!strncasecmp(buf, "subj=", 5)) {
- strcpy(summ.subj, &buf[5]);
+ if (strlen(&buf[5]) > 0) {
+ strcpy(summ.subj, &buf[5]);
+ if (strlen(summ.subj) > 75) {
+ strcpy(&summ.subj[72], "...");
+ }
+ }
}
/* if (!strncasecmp(buf, "rfca=", 5)) {
strcat(summ.from, " <");
fmt_date(summ.date, atol(&buf[5]), 1); /* brief */
}
}
+
+ if (strlen(summ.from) > 25) {
+ strcpy(&summ.from[22], "...");
+ }
wprintf("<TD>");
if (is_new) wprintf("<B>");
"<table border=0 cellspacing=0 "
"cellpadding=0 width=100%%>\n"
"<TR>"
- "<TD><I>Subject</I></TD>"
- "<TD><I>Sender</I></TD>"
- "<TD><I>Date</I></TD>"
+ "<TD align=center><b><i>Subject</i></b></TD>"
+ "<TD align=center><b><i>Sender</i></b></TD>"
+ "<TD align=center><b><i>Date</i></b></TD>"
"<TD></TD>"
"</TR>\n"
);
}
wprintf("<A HREF=\"/%s?startmsg=%ld"
- "&maxmsgs=999999&summary=1\">"
+ "&maxmsgs=%d&summary=1\">"
"Summary"
"</A>",
oper,
- WC->msgarr[0]);
+ WC->msgarr[0],
+ DEFAULT_MAXMSGS
+ );
wprintf("</td></tr></table></div>\n");
}
lo, hi);
}
wprintf("<OPTION VALUE=\"/%s?startmsg=%ld"
- "&maxmsgs=999999&summary=%d\">"
+ "&maxmsgs=9999999&summary=%d\">"
"ALL"
"</OPTION> ",
oper,
wDumpContent(1);
if (addrbook != NULL) free(addrbook);
+
+ /* If we got here via a mailbox view and are reading a single
+ * message, mark it as "seen." We do this after rendering the web page
+ * so it doesn't keep the user waiting.
+ */
+ if ( (maxmsgs == 1) && (WC->wc_view == VIEW_MAILBOX) ) {
+ serv_printf("SEEN %ld|1", startmsg);
+ serv_getln(buf, sizeof buf);
+ }
}
serv_printf("--%s", boundary);
}
- serv_puts("Content-type: text/html");
+ serv_puts("Content-type: text/html; charset=utf-8");
serv_puts("");
serv_puts("<HTML><BODY>\n");
text_to_server(bstr("msgtext"), 0);
now);
wprintf("%s<br>\n", buf); /* header bar */
- wprintf("<img src=\"static/enter.gif\" align=middle alt=\" \">");
+ wprintf("<img src=\"static/newmess3_24x.gif\" align=middle alt=\" \">");
/* "onLoad=\"document.enterform.msgtext.focus();\" " */
wprintf("<font size=-1>Subject (optional):</font>"
"<input type=\"text\" name=\"subject\" value=\"");
"</script></center><br />\n");
/* Enumerate any attachments which are already in place... */
- wprintf("<img src=\"/static/attachment.gif\" border=0 "
+ wprintf("<img src=\"/static/diskette_24x.gif\" border=0 "
"align=middle height=16 width=16> Attachments: ");
wprintf("<select name=\"which_attachment\" size=1>");
for (att = WC->first_attachment; att != NULL; att = att->next) {