about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-16 05:30:22 +0000
committerEric Wong <e@80x24.org>2021-08-16 07:11:03 +0000
commitf6479786aacb8780724d50faf771bf5c7f015daf (patch)
tree085e39700ace3464cd0962e05afecba6e712c990 /lib/PublicInbox/ExtSearch.pm
parent7057307e044b0b63e2517e125c0f971630966072 (diff)
downloadpublic-inbox-f6479786aacb8780724d50faf771bf5c7f015daf.tar.gz
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/
Diffstat (limited to 'lib/PublicInbox/ExtSearch.pm')
-rw-r--r--lib/PublicInbox/ExtSearch.pm1
1 files changed, 1 insertions, 0 deletions
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;