summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-30 04:49:12 +0200
committerlpsolit%gmail.com <>2006-03-30 04:49:12 +0200
commit9fc0498b4a52faf9b8651076091c9d2f5ad9ea49 (patch)
treeeb16c5291bfdbae0b11890e93a42184b5d6518f2 /Bugzilla
parent7fb931a4b7b69173849575d4bb6859c5ca05834f (diff)
downloadbugzilla-9fc0498b4a52faf9b8651076091c9d2f5ad9ea49.tar.gz
bugzilla-9fc0498b4a52faf9b8651076091c9d2f5ad9ea49.tar.xz
Bug 70710: More expandable tags within emails - Patch by Alan Siu-Lung Tam <Tam@SiuLung.com> r=vladd a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm8
-rw-r--r--Bugzilla/Config/MTA.pm5
2 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 89bebaab3..4d151cd7f 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -246,6 +246,7 @@ sub ProcessOneBug {
my $diffheader = "";
my @diffparts;
my $lastwho = "";
+ my @changedfields;
foreach my $ref (@$diffs) {
my ($who, $what, $when, $old, $new, $attachid, $fieldname) = (@$ref);
my $diffpart = {};
@@ -271,7 +272,9 @@ sub ProcessOneBug {
$diffpart->{'fieldname'} = $fieldname;
$diffpart->{'text'} = $difftext;
push(@diffparts, $diffpart);
+ push(@changedfields, $what);
}
+ $values{'changed_fields'} = join(' ', @changedfields);
my $deptext = "";
@@ -625,6 +628,11 @@ sub sendMail {
$substs{"component"} = $values{'component'};
$substs{"keywords"} = $values{'keywords'};
$substs{"severity"} = $values{'bug_severity'};
+ $substs{"status"} = $values{'bug_status'};
+ $substs{"priority"} = $values{'priority'};
+ $substs{"assignedto"} = $values{'assigned_to'};
+ $substs{"targetmilestone"} = $values{'target_milestone'};
+ $substs{"changedfields"} = $values{'changed_fields'};
$substs{"summary"} = $values{'short_desc'};
my (@headerrel, @watchingrel);
while (my ($rel, $bits) = each %{$relRef}) {
diff --git a/Bugzilla/Config/MTA.pm b/Bugzilla/Config/MTA.pm
index d74e2cc00..47370d34e 100644
--- a/Bugzilla/Config/MTA.pm
+++ b/Bugzilla/Config/MTA.pm
@@ -76,6 +76,11 @@ X-Bugzilla-Component: %component%
X-Bugzilla-Keywords: %keywords%
X-Bugzilla-Severity: %severity%
X-Bugzilla-Who: %changer%
+X-Bugzilla-Status: %status%
+X-Bugzilla-Priority: %priority%
+X-Bugzilla-Assigned-To: %assignedto%
+X-Bugzilla-Target-Milestone: %targetmilestone%
+X-Bugzilla-Changed-Fields: %changedfields%
%urlbase%show_bug.cgi?id=%bugid%