]> Sergey Matveev's repositories - public-inbox.git/commit
address: use Email::Address::XS if available
authorEric Wong <e@80x24.org>
Sat, 14 Dec 2019 01:02:56 +0000 (01:02 +0000)
committerEric Wong <e@80x24.org>
Sun, 15 Dec 2019 19:43:33 +0000 (19:43 +0000)
commit69ae87044ca499aa401c73a9a1d764013539fb2d
tree64abf40f05e72ec10a30d1e55af29ae31b5638da
parent01d25810ec9baf643e2a278a0fefdf857bfd3883
address: use Email::Address::XS if available

Email::Address::XS is a dependency of modern versions of Email::MIME,
so it's likely loaded and installed on newer systems, already;
and capable of handling more corner-cases than our pure-Perl
fallback.

We still fallback to the imperfect-but-good-enough-in-practice
pure-Perl code while avoiding the non-XS Email::Address (which
was susceptible to DoS attacks (CVE-2015-7686)).  We just need
to keep "git fast-import" happy.
MANIFEST
lib/PublicInbox/Address.pm
lib/PublicInbox/AddressPP.pm [new file with mode: 0644]
t/address.t