From 7808b18c63f9d754a56ad7b2bd2385545d3521fb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Jul 2018 08:23:51 +0000 Subject: search: (really) match the behavior of WWW for indexing text 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") --- lib/PublicInbox/SearchIdx.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/PublicInbox/SearchIdx.pm') 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; -- cgit v1.2.3-24-ge0c7