summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-01-28 08:53:27 +0100
committerterry%netscape.com <>1999-01-28 08:53:27 +0100
commitd920d3dd836a1a9fc627bbb3d9018510a410400e (patch)
tree2d334ae5f62e7d1f1398cfd1dcc3448270c174b9 /processmail
parent30651175550b7818f3964c9b5787b0ad3c76f5b9 (diff)
downloadbugzilla-d920d3dd836a1a9fc627bbb3d9018510a410400e.tar.gz
bugzilla-d920d3dd836a1a9fc627bbb3d9018510a410400e.tar.xz
Include the new fields in email notifications.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail25
1 files changed, 21 insertions, 4 deletions
diff --git a/processmail b/processmail
index 50b282b02..df1001fd9 100755
--- a/processmail
+++ b/processmail
@@ -110,7 +110,8 @@ sub GetBugText {
my @collist = ("bug_id", "product", "version", "rep_platform", "op_sys",
"bug_status", "resolution", "priority", "bug_severity",
"area", "assigned_to", "reporter", "bug_file_loc",
- "short_desc", "component");
+ "short_desc", "component", "qa_contact", "target_milestone",
+ "status_whiteboard");
my $query = "select " . join(", ", @collist) .
" from bugs where bug_id = $id";
@@ -130,6 +131,21 @@ sub GetBugText {
$::bug{'assigned_to'} = DBID_to_name($::bug{'assigned_to'});
$::bug{'reporter'} = DBID_to_name($::bug{'reporter'});
+ my $qa_contact = "";
+ my $target_milestone = "";
+ my $status_whiteboard = "";
+ if (Param('useqacontact') && $::bug{'qa_contact'} > 0) {
+ $::bug{'qa_contact'} = DBID_to_name($::bug{'qa_contact'});
+ $qa_contact = "QAContact: $::bug{'qa_contact'}\n";
+ } else {
+ $::bug{'qa_contact'} = "";
+ }
+ if (Param('usetargetmilestone') && $::bug{'target_milestone'} ne "") {
+ $target_milestone = "TargetMilestone: $::bug{'target_milestone'}\n";
+ }
+ if (Param('usestatuswhiteboard') && $::bug{'status_whiteboard'} ne "") {
+ $status_whiteboard = "StatusWhiteboard: $::bug{'status_whiteboard'}\n";
+ }
$::bug{'long_desc'} = GetLongDescription($id);
@@ -151,7 +167,7 @@ Component: $::bug{'component'}
Area: $::bug{'area'}
AssignedTo: $::bug{'assigned_to'}
ReportedBy: $::bug{'reporter'}
-URL: $::bug{'bug_file_loc'}
+$qa_contact$target_milestone${status_whiteboard}URL: $::bug{'bug_file_loc'}
" . DescCC($::bug{'cclist'}) . "Summary: $::bug{'short_desc'}
$::bug{'long_desc'}
@@ -166,7 +182,7 @@ sub fixaddresses {
my @result;
my %seen;
foreach my $i (@$list) {
- if (!defined $::nomail{$i} && !defined $seen{$i}) {
+ if ($i ne "" && !defined $::nomail{$i} && !defined $seen{$i}) {
push @result, $i;
$seen{$i} = 1;
}
@@ -237,7 +253,8 @@ foreach my $i (@ARGV) {
close FID;
if (Different($old, $new)) {
system("diff -c $old $new > $diffs");
- my $tolist = fixaddresses([$::bug{'assigned_to'}, $::bug{'reporter'}]);
+ my $tolist = fixaddresses([$::bug{'assigned_to'}, $::bug{'reporter'},
+ $::bug{'qa_contact'}]);
my $cclist = fixaddresses($::bug{'cclist'});
my $logstr = "Bug $i changed";
if ($tolist ne "" || $cclist ne "") {