]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiQuery.pm
lei q: auto-memoize remote messages into lei/store
[public-inbox.git] / lib / PublicInbox / LeiQuery.pm
index 743fa3f7b23600874f008ffdc9833273515529e9..b57d1cc56aa70327dfccd19ab828a9642e3dfc73 100644 (file)
@@ -51,6 +51,7 @@ 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->{'local'} //= scalar(@only) ? 0 : 1) {
                $lxs->prepare_external($lse);
        }