summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-28 03:18:29 +0200
committerterry%mozilla.org <>1999-05-28 03:18:29 +0200
commit31e136cfff339849933b8a686600704b5b4083ba (patch)
tree57609a4e4041c9078e618a1ec49b13389a547710 /processmail
parentf47c0339e2c258c878e6284970d917dcd3960cba (diff)
downloadbugzilla-31e136cfff339849933b8a686600704b5b4083ba.tar.gz
bugzilla-31e136cfff339849933b8a686600704b5b4083ba.tar.xz
Notify by mail whenever a related bug changes status.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail11
1 files changed, 10 insertions, 1 deletions
diff --git a/processmail b/processmail
index ccc8da271..26fd4a2d0 100755
--- a/processmail
+++ b/processmail
@@ -121,7 +121,16 @@ sub DescDependencies {
push(@list, FetchOneColumn());
}
if (@list) {
- $result .= "$title: " . join(',', @list) . "\n";
+ my @verbose;
+ foreach my $i (@list) {
+ SendSQL("select bug_status, resolution from bugs where bug_id = $i");
+ my ($bug_status, $resolution) = (FetchSQLData());
+ if ($resolution ne "") {
+ $resolution = "/$resolution";
+ }
+ push(@verbose, $i . "[$bug_status$resolution]");
+ }
+ $result .= "$title: " . join(', ', @verbose) . "\n";
}
my $tmp = $me;
$me = $target;