Commit 4f65880d authored by terry%mozilla.org's avatar terry%mozilla.org

Added ability to run "processmail rescanall" to scan *every* bug for

any mail that ought to be sent to someone.
parent 08bf9458
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment