$Log$
+Revision 212.5 2000/07/06 03:46:29 ajc
+* Fixed the count in 'there are xxx messages remaining." (Closes bug #61)
+
Revision 212.4 2000/06/29 04:22:35 ajc
* Changed the format of the wholis (again). Now it shows up in a frame
instead of a separate window.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
int maxmsgs;
int num_displayed = 0;
int is_summary = 0;
+ int remaining_messages;
startmsg = atol(bstr("startmsg"));
maxmsgs = atoi(bstr("maxmsgs"));
goto DONE;
}
+ remaining_messages = 0;
+ for (a = 0; a < nummsgs; ++a) {
+ if (WC->msgarr[a] >= startmsg) {
+ ++remaining_messages;
+ }
+ }
+
+
+
for (a = 0; a < nummsgs; ++a) {
if (WC->msgarr[a] >= startmsg) {
if (is_summary) wprintf("<BR>");
++num_displayed;
+ --remaining_messages;
+
if ( (num_displayed >= maxmsgs) && (a < nummsgs) ) {
wprintf("<CENTER><FONT SIZE=+1>"
"There are %d more messages here."
" </FONT>",
- nummsgs - num_displayed);
+ remaining_messages);
wprintf("<A HREF=\"/readfwd?startmsg=%ld"
"&maxmsgs=999999&summary=%d\">"
"Read them ALL"