mhonarc-users

Bug of Mail Index (Re: MHonArc v2.5.0b Is Available)

2001-09-03 21:46:18
Hello,

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.


Best regards,

-- 
Takashi P.KATOH

--- 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,
          $offstart, $offend);
-    my($PageNum, $PageSize, $totalpgs);
+    local($PageNum, $PageSize, $totalpgs);
     local(*a);
 
     &compute_page_total();
<Prev in Thread] Current Thread [Next in Thread>