diff options
author | Eric Wong <e@80x24.org> | 2021-03-03 13:48:57 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-04 14:29:20 -0400 |
commit | fbc11e24a72f41b0ed7ead30d199288a4d674be4 (patch) | |
tree | 9ce1e0f18633319ccace53c250091eada77dda86 /lib/PublicInbox/LeiQuery.pm | |
parent | 6fd748af8d4792d8cb857c3d2ec132ec3cca9bb8 (diff) | |
download | public-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/LeiQuery.pm')
-rw-r--r-- | lib/PublicInbox/LeiQuery.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index b57d1cc5..c630d628 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -51,7 +51,10 @@ sub lei_q { # we'll allow "--only $LOCATION --local" my $sto = $self->_lei_store(1); my $lse = $sto->search; - $sto->write_prepare($self) if $opt->{'import-remote'} //= 1; + if (($opt->{'import-remote'} //= 1) | + ($opt->{'import-augment'} //= 1)) { + $sto->write_prepare($self); + } if ($opt->{'local'} //= scalar(@only) ? 0 : 1) { $lxs->prepare_external($lse); } |