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 93C761F8C6 for ; Mon, 16 Aug 2021 05:30:22 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] www: uninitialized vars due to extindex lacking address Date: Mon, 16 Aug 2021 05:30:22 +0000 Message-Id: <20210816053022.17459-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Some messages have From/To/Cc headers munged to be unparseable to Email::Address::XS, the fallback is to use the default inbox address. -extindex do not have an address on their own, so just fall back to using 'unknown@example.com' for now. An example of such a message: https://yhbt.net/lore/all/20201002154535.28412-1-fw@strlen.de/ --- lib/PublicInbox/ExtSearch.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/ExtSearch.pm b/lib/PublicInbox/ExtSearch.pm index c2cfc338..0b480c7e 100644 --- a/lib/PublicInbox/ExtSearch.pm +++ b/lib/PublicInbox/ExtSearch.pm @@ -19,6 +19,7 @@ sub new { my ($class, $topdir) = @_; bless { topdir => $topdir, + -primary_address => 'unknown@example.com', # xpfx => 'ei15' xpfx => "$topdir/ei".PublicInbox::Search::SCHEMA_VERSION }, $class;