Users with non-US-ASCII compatible names were not showing
up properly in "git log" output.
use Email::Filter;
use Email::Address;
use Email::Filter;
use Email::Address;
+use Encode qw/decode encode/;
+use Encode::MIME::Header;
use File::Path::Expand qw/expand_filename/;
use IPC::Run qw(run);
use constant MDA => 'ssoma-mda';
use File::Path::Expand qw/expand_filename/;
use IPC::Run qw(run);
use constant MDA => 'ssoma-mda';
set_list_headers($simple, $dst);
$filter->simple($simple);
set_list_headers($simple, $dst);
$filter->simple($simple);
- my $from = $filter->from;
+ my $from = decode('MIME-Header', $filter->from);
+ $from = encode("utf8", $from);
my @from = Email::Address->parse($from);
my $name = $from[0]->name;
defined $name or $name = "";
my @from = Email::Address->parse($from);
my $name = $from[0]->name;
defined $name or $name = "";