about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-03 13:48:57 +0000
committerEric Wong <e@80x24.org>2021-03-04 14:29:20 -0400
commitfbc11e24a72f41b0ed7ead30d199288a4d674be4 (patch)
tree9ce1e0f18633319ccace53c250091eada77dda86 /lib/PublicInbox/LeiXSearch.pm
parent6fd748af8d4792d8cb857c3d2ec132ec3cca9bb8 (diff)
downloadpublic-inbox-fbc11e24a72f41b0ed7ead30d199288a4d674be4.tar.gz
This will eventually be supported for other mail stores,
but Maildir is the easiest to test and support, here.

This lets us avoid a situation where flag changes get
lost between search results.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index dcc48806..45815180 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -204,7 +204,7 @@ sub query_mset { # non-parallel for non-"--threads" users
 
 sub each_remote_eml { # callback for MboxReader->mboxrd
         my ($eml, $self, $lei, $each_smsg) = @_;
-        $lei->{sto}->ipc_do('add_eml', $eml) if $lei->{sto}; # --import-remote
+        $lei->{sto}->ipc_do('add_eml', $eml) if $lei->{opt}->{'import-remote'};
         my $smsg = bless {}, 'PublicInbox::Smsg';
         $smsg->populate($eml);
         $smsg->parse_references($eml, mids($eml));