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 133FB6DE00E8 for ; Sat, 28 Jan 2017 05:15:39 -0800 (PST) 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 OptCK_l4R7qR for ; Sat, 28 Jan 2017 05:15:38 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 720F06DE00AC for ; Sat, 28 Jan 2017 05:15:38 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cXSqO-0007tz-Va for notmuch@notmuchmail.org; Sat, 28 Jan 2017 08:15:05 -0500 Received: (nullmailer pid 26474 invoked by uid 1000); Sat, 28 Jan 2017 13:15:34 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: library prefix / field processor cleanup Date: Sat, 28 Jan 2017 09:15:19 -0400 Message-Id: <20170128131521.26414-1-david@tethera.net> X-Mailer: git-send-email 2.11.0 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, 28 Jan 2017 13:15:39 -0000 I started trying to generalize the regexp stuff to include message-ids [1], but didn't get that far. I think both of these patches are defensible on their own, particularly the second. I'll probably include something like them in a revised series for regexp searching. Probably we should use more of the the "release()" style memory management with Xapian; I didn't follow that up yet as I didn't want to get _too_ distracted from current goal. [1]: the complication is that message-ids are boolean fields, while from and subject are probabilistic. It's not insurmountable, but it did inspire re-thinking the way query fields are initialized.