diff options
author | terry%netscape.com <> | 1999-03-04 10:22:27 +0100 |
---|---|---|
committer | terry%netscape.com <> | 1999-03-04 10:22:27 +0100 |
commit | 6f9e2eb8ad8d412dc0a5b667071993b734c0e336 (patch) | |
tree | 0fbd56e3d330a8c26f6641d0fcfdcd20b42c7ef1 | |
parent | 5517743f7131fa6827ad5604c592d9abc7a0c94e (diff) | |
download | bugzilla-6f9e2eb8ad8d412dc0a5b667071993b734c0e336.tar.gz bugzilla-6f9e2eb8ad8d412dc0a5b667071993b734c0e336.tar.xz |
"regenerate" was busted.
-rwxr-xr-x | processmail | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/processmail b/processmail index df1001fd9..bdd1f2c04 100755 --- a/processmail +++ b/processmail @@ -222,14 +222,15 @@ if (open(FID, "<data/nomail")) { my $regenerate = 0; -if (($#ARGV >= 1) && ($ARGV[0] eq "regenerate")) { +if ($ARGV[0] eq "regenerate") { $regenerate = 1; - $#ARGV = -1; + shift @ARGV; SendSQL("select bug_id from bugs order by bug_id"); my @row; while (@row = FetchSQLData()) { push @ARGV, $row[0]; } + print "$#ARGV bugs to be regenerated.\n"; } foreach my $i (@ARGV) { |