summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2006-02-22 06:41:00 +0100
committerjocuri%softhome.net <>2006-02-22 06:41:00 +0100
commit599b3acca59b1c6b469da37f6fdf459fab778a3c (patch)
tree7cc056bef2e97c48c03fbf6a619bb0a665089d3d
parent3cdacc402e19398d54c5f3cdfec4cd3724e66359 (diff)
downloadbugzilla-599b3acca59b1c6b469da37f6fdf459fab778a3c.tar.gz
bugzilla-599b3acca59b1c6b469da37f6fdf459fab778a3c.tar.xz
Patch for bug 137261: Add X-Bugzilla-Who: an email header specifying the bugzilla account that made these changes; patch by Albert Ting <altlst@sonic.net>, r=LpSolit, a=justdave.
-rw-r--r--Bugzilla/BugMail.pm4
-rw-r--r--Bugzilla/Config/MTA.pm1
2 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index e4a19d65f..f065cb5fc 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -187,6 +187,8 @@ sub ProcessOneBug {
}
# Convert to names, for later display
+ $values{'changer'} = $changer;
+ $values{'changername'} = Bugzilla::User->new_from_login($changer)->name;
$values{'assigned_to'} = &::DBID_to_name($values{'assigned_to'});
$values{'reporter'} = &::DBID_to_name($values{'reporter'});
if ($values{'qa_contact'}) {
@@ -610,6 +612,8 @@ sub sendMail {
$substs{"reasonsheader"} = join(" ", map { $rel_names{$_} } @$relRef);
$substs{"reasonsbody"} = $reasonsbody;
$substs{"space"} = " ";
+ $substs{"changer"} = $values{'changer'};
+ $substs{"changername"} = $values{'changername'};
if ($isnew) {
$substs{'threadingmarker'} = "Message-ID: <bug-$id-" .
$user->id . "$sitespec>";
diff --git a/Bugzilla/Config/MTA.pm b/Bugzilla/Config/MTA.pm
index 50aa8c85d..4d2cd6703 100644
--- a/Bugzilla/Config/MTA.pm
+++ b/Bugzilla/Config/MTA.pm
@@ -91,6 +91,7 @@ X-Bugzilla-Product: %product%
X-Bugzilla-Component: %component%
X-Bugzilla-Keywords: %keywords%
X-Bugzilla-Severity: %severity%
+X-Bugzilla-Who: %changer%
%urlbase%show_bug.cgi?id=%bugid%