about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-03 13:48:55 +0000
committerEric Wong <e@80x24.org>2021-03-04 14:29:18 -0400
commit06349427654334deb14b21769a66e03a3e646684 (patch)
tree1a7cadd1324480543a5776913f3a0b618a653fc2
parente3cee251defa7a1d8d2ae56c334a4e6cf2ba935b (diff)
downloadpublic-inbox-06349427654334deb14b21769a66e03a3e646684.tar.gz
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.
-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 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));