]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: uninitialized vars due to extindex lacking address
authorEric Wong <e@80x24.org>
Mon, 16 Aug 2021 05:30:22 +0000 (05:30 +0000)
committerEric Wong <e@80x24.org>
Mon, 16 Aug 2021 07:11:03 +0000 (07:11 +0000)
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

index c2cfc3388d576f1f4f5c8135e7c82ea4017d3c5f..0b480c7ef5bb44886d2c25256a221644e04acbbf 100644 (file)
@@ -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;