diff options
author | Eric Wong <e@80x24.org> | 2018-07-30 08:23:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-08-03 20:02:54 +0000 |
commit | 7808b18c63f9d754a56ad7b2bd2385545d3521fb (patch) | |
tree | 23ad20acb38537b938287c57382164547ef2e04d | |
parent | 8e0e850859fc9572cf201111728eaa621eace451 (diff) | |
download | public-inbox-7808b18c63f9d754a56ad7b2bd2385545d3521fb.tar.gz |
Not sure what was going through my mind when I made my first attempt at this, but we really want to make sure we index all the text we display in the web view (and presumably anything a reasonable mail client can display). Followup-to: 0cf6196025d4e4880cd1ed859257ce21dd3cdcf6 ("search: match the behavior of WWW for indexing text")
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 1d259a86..29868d99 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -321,8 +321,7 @@ sub add_xapian ($$$$$) { defined $s or return; my (@orig, @quot); - my $body = $part->body; - my @lines = split(/\n/, $body); + my @lines = split(/\n/, $s); while (defined(my $l = shift @lines)) { if ($l =~ /^>/) { $self->index_body(\@orig, $doc) if @orig; |