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/Feed.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/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 51216aaa..f4d19e02 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -279,7 +279,7 @@ sub add_to_feed { my $type = index($title, '&') >= 0 ? "\ntype=\"html\"" : ''; my $from = mime_header($header_obj, 'From') or return 0; - my @from = Email::Address->parse($from); + my @from = Email::Address->parse($from) or return 0; my $name = PublicInbox::Hval->new_oneline($from[0]->name)->as_html; my $email = $from[0]->address; $email = PublicInbox::Hval->new_oneline($email)->as_html; |