I've reported from some MHonArc (v2.5.0b) user in Japan that
the links of [Next Page] on Mail Index pages are ALWAYS to
maillist.html when MULTIPG is specified in rc file.
For example, [Next Page] in maillist.html is linked to
maillist.html itself, not to mail2.html.
It seems this is because $PageNum is declared as lexically
local (by `my') in mhindex.pl::write_main_index.
I believe the attached patch fixes this problem.
--- mhindex.pl,orig Tue Sep 4 09:50:31 2001
+++ mhindex.pl Tue Sep 4 10:48:56 2001
@@ -34,7 +34,7 @@
my $onlypg = shift;
my($outhandle, $i, $i_p0, $filename, $tmpl, $isfirst, $tmp,
- my($PageNum, $PageSize, $totalpgs);
+ local($PageNum, $PageSize, $totalpgs);