From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C34451F463 for ; Sat, 14 Dec 2019 01:02:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/2] use Email::Address::XS if available Date: Sat, 14 Dec 2019 01:02:54 +0000 Message-Id: <20191214010256.19858-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Email::Address::XS is loaded by default on modern Email::MIME (which we depend on), so we might as well use it. 1/2 also improves the pure-Perl fallback to match optimal ::XS behavior. Eric Wong (2): address: use comment as name if no phrase available address: use Email::Address::XS if available MANIFEST | 1 + lib/PublicInbox/Address.pm | 34 ++++++++++--------- lib/PublicInbox/AddressPP.pm | 38 +++++++++++++++++++++ t/address.t | 66 ++++++++++++++++++++++-------------- 4 files changed, 98 insertions(+), 41 deletions(-) create mode 100644 lib/PublicInbox/AddressPP.pm