From: Eric Wong Date: Fri, 9 Sep 2016 00:01:26 +0000 (+0000) Subject: search: match quote detection behavior of view X-Git-Tag: v1.0.0~192 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=6ca633a1360a0974a8ebb117554a856022d797c6 search: match quote detection behavior of view This is stricter than the mutt quote_regexp default ("^([ \t]*[|>:}#])+" on Debian jessie), but matches what we have in View.pm. I prefer the stricter quote detection since it is less ambiguous and less likely to hide/obscure important details. --- diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index ae890605..25452dae 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -184,7 +184,7 @@ sub add_message { $part->body_set(''); my @lines = split(/\n/, $body); while (defined(my $l = shift @lines)) { - if ($l =~ /^\s*>/) { + if ($l =~ /^>/) { push @quot, $l; } else { push @orig, $l;