From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B3EC16DE168B for ; Sat, 25 Mar 2017 05:59:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gLLackzc2jbB for ; Sat, 25 Mar 2017 05:59:23 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id DC4776DE1684 for ; Sat, 25 Mar 2017 05:59:22 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1crlHC-0005D0-Ll for notmuch@notmuchmail.org; Sat, 25 Mar 2017 08:58:38 -0400 Received: (nullmailer pid 28192 invoked by uid 1000); Sat, 25 Mar 2017 12:59:20 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: Drop HTML tags when indexing In-Reply-To: <20170322112306.12060-1-david@tethera.net> References: <20170322112306.12060-1-david@tethera.net> Date: Sat, 25 Mar 2017 09:59:20 -0300 Message-ID: <87shm1ikbb.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Mar 2017 12:59:23 -0000 David Bremner writes: > Steven Allen pointed out [2] that the previous scanner [1] was a > little too simplistic. This version handles (or claims to) quoted > strings in attributes, which can apparently contain '>'and '<' > characters. This required generalizing the state machine runner a bit > [3] to handle states with out-degree more than two. For what it is worth, this series shrunk my index by about the same amount as skipping html messages entirely: I have about 15% messages with html parts, and this series made the index about 15% smaller. d