From 81a9c1b476987d845b340ab9013d26cf4487cb9a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Sep 2015 01:57:11 +0000 Subject: search: disable Message-ID compression in Xapian We'll continue to compress long Message-IDs in URLs (which we know about), but we will store entire Message-IDs in the Xapian database to facilitate ease-of-lookups in external databases. --- lib/PublicInbox/SearchMsg.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/SearchMsg.pm') diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index 1821b076..38918236 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -9,7 +9,7 @@ use Email::Address qw//; use Email::Simple qw//; use POSIX qw//; use Date::Parse qw/str2time/; -use PublicInbox::MID qw/mid_clean mid_compress/; +use PublicInbox::MID qw/mid_clean/; use Encode qw/find_encoding/; my $enc_utf8 = find_encoding('UTF-8'); our $PFX2TERM_RE = undef; @@ -167,7 +167,7 @@ sub _extract_mid { my ($self) = @_; my $mid = $self->mime->header('Message-ID'); - $mid ? mid_compress(mid_clean($mid)) : $mid; + defined $mid ? mid_clean($mid) : $mid; } sub mime { -- cgit v1.2.3-24-ge0c7