aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2019-09-30 20:40:57 +0200
committerFrédéric Buclin <LpSolit@netscape.net>2019-09-30 20:40:57 +0200
commit78eb67aba9f6dd1356050ccd533fbca4026992bb (patch)
tree2637ca76ee2cfde02fb710b59ce2a7c3f6342233
parent7fee353ce5190f5e08bb05fd9b29e24fdd4dc654 (diff)
downloadbugs-78eb67aba9f6dd1356050ccd533fbca4026992bb.tar
bugs-78eb67aba9f6dd1356050ccd533fbca4026992bb.tar.gz
bugs-78eb67aba9f6dd1356050ccd533fbca4026992bb.tar.bz2
bugs-78eb67aba9f6dd1356050ccd533fbca4026992bb.tar.xz
bugs-78eb67aba9f6dd1356050ccd533fbca4026992bb.zip
Fix encoding problem for the 'From' email header
-rw-r--r--extensions/Mageia/Extension.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/Mageia/Extension.pm b/extensions/Mageia/Extension.pm
index 257e7782a..e419e4882 100644
--- a/extensions/Mageia/Extension.pm
+++ b/extensions/Mageia/Extension.pm
@@ -21,7 +21,6 @@ use Bugzilla::User::Setting qw(add_setting);
use Bugzilla::Extension::Mageia::Util qw(compare_datetimes sync_ldap_groups_check);
use Email::Address;
-use Encode qw(encode);
# Let's match the Bugzilla version it's written for.
our $VERSION = '5.0';
@@ -132,7 +131,7 @@ sub mailer_before_send {
$changer = Bugzilla::User->new({ name => $changer });
return unless $changer;
my $address = Email::Address->new($changer->name, $email->header('From'));
- $email->header_set('From', encode('MIME-Header', $address->format));
+ $email->header_str_set('From' => $address->format);
}
}