]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Added ability to run "processmail rescanall" to scan *every* bug for
authorterry%mozilla.org <>
Tue, 12 Oct 1999 01:18:39 +0000 (01:18 +0000)
committerterry%mozilla.org <>
Tue, 12 Oct 1999 01:18:39 +0000 (01:18 +0000)
any mail that ought to be sent to someone.

processmail

index 58d53e51f7cf3946ba6e45bd9e801075f56425a6..7cb3c7d6e415b22fced6a9b2660f284ca9b47fb5 100755 (executable)
@@ -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;