diff options
author | Eric Wong <e@80x24.org> | 2017-01-07 01:44:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-07 01:45:45 +0000 |
commit | 492910d43c179a7e1919b2d0f417aea9473f9730 (patch) | |
tree | 659ecf60edb181bd146a28e80612270ff5cefe18 /lib/PublicInbox/SearchIdx.pm | |
parent | f63ea68e457f9e2618eac1d3d62227d2b605651b (diff) | |
download | public-inbox-492910d43c179a7e1919b2d0f417aea9473f9730.tar.gz |
This is faster, smaller, and more straighforward to me with fewer layers of indirection.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 832d1cbf..87ee0d46 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -155,7 +155,7 @@ sub add_message { if ($smsg) { # convert a ghost to a regular message # it will also clobber any existing regular message - $doc_id = $smsg->doc_id; + $doc_id = $smsg->{doc_id}; $old_tid = $smsg->thread_id; } $smsg = PublicInbox::SearchMsg->new($mime); @@ -289,7 +289,7 @@ sub link_message { my ($self, $smsg, $old_tid) = @_; my $doc = $smsg->{doc}; my $mid = $smsg->mid; - my $mime = $smsg->mime; + my $mime = $smsg->{mime}; my $hdr = $mime->header_obj; my $refs = $hdr->header_raw('References'); my @refs = $refs ? ($refs =~ /<([^>]+)>/g) : (); |