aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Mageia/Extension.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Mageia/Extension.pm')
-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);
}
}