Chuck Williams writes:
The default web page for viewing list members through webmlm does not provide any links for paging. It shows the first 100 users and explains the range of users shown at the top, but provides no links for seeing the next group of users. I've discovered that is is possible to add ?page=n to the url the see the nth page of users.
I don't know how that happened :-( It'll be fixed in the next release.
/me smacks himself with a wet noodle.
Index: courier/webmlmdsublist.C
===================================================================
RCS file: /cvsroot/courier/courier/courier/courier/webmlmdsublist.C,v
retrieving revision 1.6
diff -U3 -r1.6 webmlmdsublist.C
--- courier/webmlmdsublist.C 30 Jun 2007 03:49:11 -0000 1.6
+++ courier/webmlmdsublist.C 7 Jul 2008 23:27:11 -0000
@@ -400,7 +400,7 @@
bool doSearch= *cgi("dosearch") && *cgi("searchaddr");
- for (pageIdx=0; pageIdx < sub_list.size()/PAGESIZE; pageIdx++)
+ for (pageIdx=0; pageIdx < (sub_list.size()+PAGESIZE-1)/PAGESIZE;
pageIdx++)
{
std::cout << "<tr class='oddrow'><td>";
pgptsJZWqwnni.pgp
Description: PGP signature
------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
