X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FSearchIdx.pm;h=89d8bc2b282dbf64bc71d87b1d1e1fb66b4fef24;hp=fe00df53c268ffbc77bd4872fa6fb7ab5b4918e0;hb=1a02e2d367b71eca9fc8093ce83fcae50873003d;hpb=fc92ce8845ac5f09939722537624fa48441f7c0b diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index fe00df53..89d8bc2b 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -302,7 +302,7 @@ sub index_xapian { # msg_iter callback defined $s or return; # split off quoted and unquoted blocks: - my @sections = split(/((?:^>[^\n]*\n)+)/sm, $s); + my @sections = PublicInbox::MsgIter::split_quotes($s); $part = $s = undef; index_body($self, $_, /\A>/ ? 0 : $doc) for @sections; }