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/SearchMsg.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/SearchMsg.pm')
-rw-r--r-- | lib/PublicInbox/SearchMsg.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index d41d2439..4b0b645e 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -85,7 +85,8 @@ sub from ($) { my ($self) = @_; my $from = __hdr($self, 'from'); if (defined $from && !defined $self->{from_name}) { - $self->{from_name} = PublicInbox::Address::from_name($from); + my @n = PublicInbox::Address::names($from); + $self->{from_name} = join(', ', @n); } $from; } |