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/MDA.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/MDA.pm')
-rw-r--r-- | lib/PublicInbox/MDA.pm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/PublicInbox/MDA.pm b/lib/PublicInbox/MDA.pm index fe04ded9..16da7afa 100644 --- a/lib/PublicInbox/MDA.pm +++ b/lib/PublicInbox/MDA.pm @@ -88,9 +88,7 @@ sub author_info { my $from = $mime->header('From'); my @from = Email::Address->parse($from); my $name = $from[0]->name; - defined $name or $name = ''; my $email = $from[0]->address; - defined $email or $email = ''; ($name, $email, $mime->header('Date')); } |