From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS20860 88.150.156.0/22 X-Spam-Status: No, score=-0.4 required=3.0 tests=AWL,BAYES_00, RCVD_IN_BRBL_LASTEXT,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_ZBI,RCVD_IN_XBL, RDNS_NONE,SPF_FAIL,SPF_HELO_FAIL shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from 80x24.org (unknown [88.150.157.14]) by dcvr.yhbt.net (Postfix) with ESMTP id CF77C20711 for ; Thu, 8 Sep 2016 01:53:21 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH 5/6] search: match quote detection behavior of view Date: Thu, 8 Sep 2016 01:53:09 +0000 Message-Id: <20160908015310.28670-5-e@80x24.org> In-Reply-To: <20160908015310.28670-1-e@80x24.org> References: <20160908015310.28670-1-e@80x24.org> List-Id: 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. --- lib/PublicInbox/SearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index ae89060..25452da 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; -- EW