Skip to content

Commit 685776f

Browse files
author
David Lawrence
committed
Bug 1016273: Bugzilla whine emails missing change to From header made by bug 1010751
1 parent ac9980a commit 685776f

File tree

18 files changed

+18
-21
lines changed

18 files changed

+18
-21
lines changed

email_in.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,7 @@ sub die_handler {
387387
$msg =~ s/at .+ line.*$//ms;
388388
$msg =~ s/^Compilation failed in require.+$//ms;
389389
$msg = html_strip($msg);
390-
my $from = '"' . template_var('terms')->{'BugzillaTitle'} . '"' .
391-
' <' . Bugzilla->params->{'mailfrom'} . '>';
390+
my $from = Bugzilla->params->{'mailfrom'};
392391
my $reply = reply(to => $input_email, from => $from, top_post => 1,
393392
body => "$msg\n");
394393
MessageToMTA($reply->as_string);

extensions/RequestNagger/template/en/default/email/request_nagging-requestee-header.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[% PROCESS "global/field-descs.none.tmpl" %]
1010
[% PROCESS "global/reason-descs.none.tmpl" %]
11-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
11+
From: [% Param('mailfrom') %]
1212
To: [% recipient.email %]
1313
Subject: [[% terms.Bugzilla %]] Your Overdue Requests
1414
([% FOREACH type = requests.item(recipient.email).typelist %]

extensions/RequestNagger/template/en/default/email/request_nagging-watching-header.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[% PROCESS "global/field-descs.none.tmpl" %]
1010
[% PROCESS "global/reason-descs.none.tmpl" %]
11-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
11+
From: [% Param('mailfrom') %]
1212
To: [% recipient.email %]
1313
Subject: [[% terms.Bugzilla %]] Overdue Requests Report
1414
Date: [% date %]

extensions/SecureMail/template/en/default/account/email/securemail-test.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[% PROCESS global/variables.none.tmpl %]
1010

11-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
11+
From: [% Param('mailfrom') %]
1212
To: [% to_user %]
1313
Subject: [% terms.Bugzilla %] SecureMail Test Email
1414
X-Bugzilla-Type: securemail-test

extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
[% PROCESS global/variables.none.tmpl %]
2222

23-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
23+
From: [% Param('mailfrom') %]
2424
To: [% to %]
2525
Subject: [% terms.Bug %] [%+ bugid %] Some or all of your votes have been removed.
2626
X-Bugzilla-Type: voteremoved

importxml.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ sub MailMessage {
133133
my $subject = shift;
134134
my $message = shift;
135135
my @recipients = @_;
136-
my $from = '"' . template_var('terms')->{'BugzillaTitle'} . '"' .
137-
' <' . Bugzilla->params->{'mailfrom'} . '>';
136+
my $from = $params->{"mailfrom"};
138137
$from =~ s/@/\@/g;
139138

140139
foreach my $to (@recipients){

template/en/default/account/cancel-token.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
[% PROCESS global/variables.none.tmpl %]
2323

24-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
24+
From: [% Param('mailfrom') %]
2525
To: [% emailaddress %]
2626
Subject: [% PROCESS subject %]
2727
X-Bugzilla-Type: admin

template/en/default/account/email/change-new.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
[% PROCESS global/variables.none.tmpl %]
2222

23-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
23+
From: [% Param('mailfrom') %]
2424
To: [% emailaddress %]
2525
Subject: [% terms.Bugzilla %] Change Email Address Request
2626
X-Bugzilla-Type: admin

template/en/default/account/email/change-old.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
[% PROCESS global/variables.none.tmpl %]
2727

28-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
28+
From: [% Param('mailfrom') %]
2929
To: [% emailaddress %]
3030
Subject: [% terms.Bugzilla %] Change Email Address Request
3131
Importance: High

template/en/default/account/email/request-new.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
[% PROCESS global/variables.none.tmpl %]
2323

24-
From: "[% terms.BugzillaTitle %]" <[% Param('mailfrom') %]>
24+
From: [% Param('mailfrom') %]
2525
To: [% email %]
2626
Subject: [% terms.Bugzilla %]: confirm account creation
2727
X-Bugzilla-Type: admin

0 commit comments

Comments
 (0)