diff options
author | terry%mozilla.org <> | 1999-10-12 01:18:39 +0000 |
---|---|---|
committer | terry%mozilla.org <> | 1999-10-12 01:18:39 +0000 |
commit | 4f65880dae72196124e408470c30e764db2b8ac3 (patch) | |
tree | 046404e3954033fbe3bb45f8c70a752e599f19f0 | |
parent | 08bf945854fdb2eebe6a583a6a65a36df50b6ae5 (diff) | |
download | bugs-4f65880dae72196124e408470c30e764db2b8ac3.tar bugs-4f65880dae72196124e408470c30e764db2b8ac3.tar.gz bugs-4f65880dae72196124e408470c30e764db2b8ac3.tar.bz2 bugs-4f65880dae72196124e408470c30e764db2b8ac3.tar.xz bugs-4f65880dae72196124e408470c30e764db2b8ac3.zip |
Added ability to run "processmail rescanall" to scan *every* bug for
any mail that ought to be sent to someone.
-rwxr-xr-x | processmail | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/processmail b/processmail index 58d53e51f..7cb3c7d6e 100755 --- a/processmail +++ b/processmail @@ -367,6 +367,20 @@ if ($#ARGV == 1) { $nametoexclude = lc($ARGV[1]); } -ProcessOneBug($ARGV[0]); +if ($ARGV[0] eq "rescanall") { + print "<br> Collecting bug ids...\n"; + SendSQL("select bug_id from bugs order by bug_id"); + my @list; + while (my @row = FetchSQLData()) { + push @list, $row[0]; + } + foreach my $id (@list) { + $ARGV[0] = $id; + print "<br> Doing bug $id\n"; + ProcessOneBug($ARGV[0]); + } +} else { + ProcessOneBug($ARGV[0]); +} exit; |