From 78eb67aba9f6dd1356050ccd533fbca4026992bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Mon, 30 Sep 2019 20:40:57 +0200 Subject: Fix encoding problem for the 'From' email header --- extensions/Mageia/Extension.pm | 3 +-- 1 file changed, 1 insertion(+), 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); } } -- cgit v1.2.1