Commit 599b3acc authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 137261: Add X-Bugzilla-Who: an email header specifying the…

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.
parent 3cdacc40
......@@ -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>";
......
......@@ -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%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment