about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStore.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-06-13 18:12:06 +0000
committerEric Wong <e@80x24.org>2021-06-14 20:00:48 +0000
commit45d516cc3defdffbf3da07a7fc5e8d534b5a8d90 (patch)
treefe4391ed98d8ad2aaffdfbf8ab810e816ff5bb32 /lib/PublicInbox/LeiStore.pm
parent499aea505f58be23a125f4fe2e3af654d42eea9f (diff)
downloadpublic-inbox-45d516cc3defdffbf3da07a7fc5e8d534b5a8d90.tar.gz
Since users can't set IMAP flags in read-only IMAP folders,
we won't clobber local flags when importing from IMAP.  This
also enables the local_blob fallback used for lei-index to
be used for index deduplication.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r--lib/PublicInbox/LeiStore.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm
index 5446873e..f978288a 100644
--- a/lib/PublicInbox/LeiStore.pm
+++ b/lib/PublicInbox/LeiStore.pm
@@ -151,7 +151,8 @@ sub _docids_for ($$) {
                         my $oid = $cur->{blob};
                         my $docid = $cur->{num};
                         my $bref = $im ? $im->cat_blob($oid) : undef;
-                        $bref //= $eidx->git->cat_file($oid) // do {
+                        $bref //= $eidx->git->cat_file($oid) //
+                                _lms_rw($self)->local_blob($oid, 1) // do {
                                 warn "W: $oid (#$docid) <$mid> not found\n";
                                 next;
                         };