diff options
author | Eric Wong <e@80x24.org> | 2016-06-25 10:56:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-25 10:56:59 +0000 |
commit | 13eda978e8937065575623d045f78592cbb6d022 (patch) | |
tree | 34dea0c86802f8808b18a2d70fafb5f23000c740 /lib/PublicInbox/View.pm | |
parent | dde6d1169d8f9d6aaede9730144d1f60be2134c8 (diff) | |
download | public-inbox-13eda978e8937065575623d045f78592cbb6d022.tar.gz |
Address::names is sufficient to handle what from_name did.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index d906276a..30d8e3e8 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -354,8 +354,8 @@ sub _msg_html_prepare { $v = PublicInbox::Hval->new($v); if ($h eq 'From') { - my $n = PublicInbox::Address::from_name($v->raw); - $title[1] = ascii_html($n); + my @n = PublicInbox::Address::names($v->raw); + $title[1] = ascii_html(join(', ', @n)); } elsif ($h eq 'Subject') { $title[0] = $v->as_html; if ($srch) { |