diff options
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r-- | lib/PublicInbox/LeiStore.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index 2745c560..43fddf6d 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -199,6 +199,7 @@ sub add_eml { $idx->shard_add_eidx_info($docid, '.', $eml); # List-Id $idx->shard_add_keywords($docid, @kw) if @kw; } + \@docids; } else { $smsg->{num} = $oidx->adj_counter('eidx_docid', '+'); $oidx->add_overview($eml, $smsg); @@ -206,8 +207,13 @@ sub add_eml { my $idx = $eidx->idx_shard($smsg->{num}); $idx->index_raw($msgref, $eml, $smsg); $idx->shard_add_keywords($smsg->{num}, @kw) if @kw; + $smsg; } - $smsg->{blob} +} + +sub set_eml { + my ($self, $eml, @kw) = @_; + add_eml($self, $eml, @kw) // set_eml_keywords($self, $eml, @kw); } sub done { |