From: Eric Wong Date: Wed, 3 Mar 2021 13:48:55 +0000 (+0000) Subject: lei_xsearch: add_eml for remote mboxrd, not set_eml X-Git-Tag: v1.7.0~1041 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=06349427654334deb14b21769a66e03a3e646684;p=public-inbox.git lei_xsearch: add_eml for remote mboxrd, not set_eml set_eml will clobber any existing keywords. Since remote mboxrds cannot (and should not) be sending keywords to us, we shouldn't let remote external requests clobber already-set keywords if they exist. --- diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm index d4607e16..dcc48806 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('set_eml', $eml) if $lei->{sto}; # --import-remote + $lei->{sto}->ipc_do('add_eml', $eml) if $lei->{sto}; # --import-remote my $smsg = bless {}, 'PublicInbox::Smsg'; $smsg->populate($eml); $smsg->parse_references($eml, mids($eml));