From: terry%mozilla.org <>
Date: Tue, 12 Oct 1999 01:18:39 +0000 (+0000)
Subject: Added ability to run "processmail rescanall" to scan *every* bug for
X-Git-Tag: bugzilla-2.8~34
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f65880dae72196124e408470c30e764db2b8ac3;p=thirdparty%2Fbugzilla.git
Added ability to run "processmail rescanall" to scan *every* bug for
any mail that ought to be sent to someone.
---
diff --git a/processmail b/processmail
index 58d53e51f7..7cb3c7d6e4 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 "
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 "
Doing bug $id\n";
+ ProcessOneBug($ARGV[0]);
+ }
+} else {
+ ProcessOneBug($ARGV[0]);
+}
exit;