From fbc11e24a72f41b0ed7ead30d199288a4d674be4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 3 Mar 2021 13:48:57 +0000 Subject: lei q: import flags when clobbering/augmenting Maildirs 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. --- lib/PublicInbox/LeiXSearch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiXSearch.pm') 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)); -- cgit v1.2.3-24-ge0c7