about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-03 03:00:28 +0000
committerEric Wong <e@80x24.org>2015-09-03 03:06:00 +0000
commit43238d3688a51d98ce47151173aa7971e231a3bb (patch)
treeb1fc31be8763eefcc2393d1fa44ad75581059fa1 /lib/PublicInbox/Mbox.pm
parent793da75fbcb5a2c546b3d582f39761fff3d8292d (diff)
downloadpublic-inbox-43238d3688a51d98ce47151173aa7971e231a3bb.tar.gz
Provide a fallback for legacy SHA-1 messages, but do not
advertise shorter URLs anymore for data portability concerns.

This fixes a regression introduced in
commit 81a9c1b476987d845b340ab9013d26cf4487cb9a
("search: disable Message-ID compression in Xapian")
which ended up breaking thread-related endpoints for
large Message-IDs, as lookups on the SHA-1 message no longer
worked.
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
-rw-r--r--lib/PublicInbox/Mbox.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index 19c18ac4..453f4cda 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -4,7 +4,7 @@
 package PublicInbox::Mbox;
 use strict;
 use warnings;
-use PublicInbox::MID qw/mid_compress mid2path/;
+use PublicInbox::MID qw/mid2path/;
 require Email::Simple;
 
 sub thread_mbox {
@@ -69,7 +69,7 @@ sub emit_mbox {
         $fh = PublicInbox::MboxGz->new($fh) if $sfx;
 
         require PublicInbox::GitCatFile;
-        my $mid = mid_compress($ctx->{mid});
+        my $mid = $ctx->{mid};
         my $git = PublicInbox::GitCatFile->new($ctx->{git_dir});
         my %opts = (offset => 0);
         my $nr;