From: Bill S. <sh...@us...> - 2007-10-27 16:09:44
|
Update of /cvsroot/vpopmail/vpopmail In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7390 Modified Files: ChangeLog README.vpopmaild vpopmaild.c Log Message: find_domain page number results now consistently start at 1 Index: README.vpopmaild =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/README.vpopmaild,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- README.vpopmaild 27 Oct 2007 15:39:29 -0000 1.12 +++ README.vpopmaild 27 Oct 2007 16:09:42 -0000 1.13 @@ -465,7 +465,7 @@ you list the page returned by find_domain, the desired domain will appear on that page. It may not be at the top of the page. The page positions are fixed. If no per_page argument is given, it defaults to one item per_page. Page -numbers start at 0. +numbers start at 1. -------------------------------------------------------------------- Index: vpopmaild.c =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/vpopmaild.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- vpopmaild.c 27 Oct 2007 15:39:29 -0000 1.35 +++ vpopmaild.c 27 Oct 2007 16:09:42 -0000 1.36 @@ -1769,7 +1769,7 @@ } else if( per_page > 0 ) { page = ( count / per_page ) + 1; } else { - page = count; + page = count + 1; } snprintf(WriteBuf,sizeof(WriteBuf), "page %i" RET_CRLF, page ); Index: ChangeLog =================================================================== RCS file: /cvsroot/vpopmail/vpopmail/ChangeLog,v retrieving revision 1.181 retrieving revision 1.182 diff -u -d -r1.181 -r1.182 --- ChangeLog 27 Oct 2007 15:39:29 -0000 1.181 +++ ChangeLog 27 Oct 2007 16:09:42 -0000 1.182 @@ -4,9 +4,9 @@ 5.4.26 - unreleased Bill Shupp - vpopmaild fix: find_domain should not list 'page 0' when a domain is not - found. Instead, return "." only. Also indicate in help that per_page is - optional. - - update README.vpopmaild to reflect the above. + found. Instead, return "." only. Also indicate in help that per_page is + optional. find_domain page numbers consistently start at 1. + - update README.vpopmaild to reflect the above. 5.4.25 - Released 9-Oct-2007 Rick Widmer, Tom Collins |