$Log$
+Revision 611.7 2005/06/12 16:03:11 ajc
+* When viewing a mailbox (view == VIEW_MAILBOX), messages are marked as
+ seen when they are viewed, and Goto does not automatically mark the
+ remaining messages as seen.
+
Revision 611.6 2005/06/11 22:29:07 ajc
* Integrated the first batch of new icons.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
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);
+ }
}
} else if (!strcasecmp(action, "ungoto")) {
ungoto();
} else if (!strcasecmp(action, "dotgoto")) {
- slrp_highest();
+ if (WC->wc_view != VIEW_MAILBOX) { /* dotgoto acts like dotskip when we're in a mailbox view */
+ slrp_highest();
+ }
smart_goto(bstr("room"));
} else if (!strcasecmp(action, "dotskip")) {
smart_goto(bstr("room"));