]> Sergey Matveev's repositories - public-inbox.git/commit
address: explicitly reject local-only addresses
authorEric Wong <e@80x24.org>
Sat, 14 Dec 2019 05:22:18 +0000 (05:22 +0000)
committerEric Wong <e@80x24.org>
Sun, 15 Dec 2019 19:43:33 +0000 (19:43 +0000)
commit3d20f6e4c214747b3e700d30e4cac70a33a817d8
treecf0165f83f30c61ee50477a147a226aef0e66967
parent69ae87044ca499aa401c73a9a1d764013539fb2d
address: explicitly reject local-only addresses

Apparently, neither our previous address parsing code nor
Email::Address::XS recognizes local, username-only addresses
in the form of <username> (without "@host").  Without
this change, Email::Address::XS->address would return
"undef", so we need to filter it out via "grep { defined }"

It seems the cases where users email each other on the same
machine is small and public-inbox won't be able to index
addresses for those cases...  Oh well :/
lib/PublicInbox/Address.pm
t/address.t