diff options
author | Eric Wong <e@80x24.org> | 2015-08-23 19:04:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-23 19:04:21 +0000 |
commit | e9fda329d958fca206543b92bc8ebea8e91eb43a (patch) | |
tree | 7cde3ee59dd332b17e0ffd1f63b34cd4740a38f7 /lib/PublicInbox/View.pm | |
parent | 9d0d07a7a37c8a0a81646cb3a1e72ec1c937651c (diff) | |
download | public-inbox-e9fda329d958fca206543b92bc8ebea8e91eb43a.tar.gz |
Email::Address::name never fails assuming it was able to parse anything.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index fe37a9fc..f4e72826 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -65,7 +65,6 @@ sub index_entry { my $from = PublicInbox::Hval->new_oneline($mime->header('From'))->raw; my @from = Email::Address->parse($from); $from = $from[0]->name; - (defined($from) && length($from)) or $from = $from[0]->address; $from = PublicInbox::Hval->new_oneline($from)->as_html; $subj = PublicInbox::Hval->new_oneline($subj)->as_html; |