summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-11-03 09:44:29 +0100
committerterry%mozilla.org <>1999-11-03 09:44:29 +0100
commit246bdedab6e0208ec41465dec84f58ab333df71a (patch)
tree80d063b06525df05227bb120316f8475a09b695b /processmail
parent4eaaf5f640895fd3db4092e413bbec3265ab24a7 (diff)
downloadbugzilla-246bdedab6e0208ec41465dec84f58ab333df71a.tar.gz
bugzilla-246bdedab6e0208ec41465dec84f58ab333df71a.tar.xz
Whoops! Was reporting ASSIGNED bugs as being closed. Also, changed
it to report the resolution of the bug instead of the word "closed". Many thanks to dbaron@fas.harvard.edu for suggesting this change, and reporting the bug.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail10
1 files changed, 6 insertions, 4 deletions
diff --git a/processmail b/processmail
index 6d35c6c7a..eedfb0339 100755
--- a/processmail
+++ b/processmail
@@ -125,12 +125,14 @@ sub DescDependencies {
my @verbose;
my $count = 0;
foreach my $i (@list) {
- SendSQL("select bug_status from bugs where bug_id = $i");
- my ($bug_status) = (FetchSQLData());
- my $desc = "[Closed]";
- if ($bug_status eq "OPEN" || $bug_status eq "NEW" ||
+ SendSQL("select bug_status, resolution from bugs where bug_id = $i");
+ my ($bug_status, $resolution) = (FetchSQLData());
+ my $desc;
+ if ($bug_status eq "NEW" || $bug_status eq "ASSIGNED" ||
$bug_status eq "REOPENED") {
$desc = "";
+ } else {
+ $desc = "[$resolution]";
}
push(@verbose, $i . "$desc");
$count++;