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 E3CAA6DE1069 for ; Sat, 2 Mar 2019 07:41:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.008 X-Spam-Level: X-Spam-Status: No, score=-0.008 tagged_above=-999 required=5 tests=[AWL=-0.007, SPF_PASS=-0.001] 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 FKb7-WFcIrgj for ; Sat, 2 Mar 2019 07:41:41 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id C30486DE0F72 for ; Sat, 2 Mar 2019 07:41:41 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1h06le-0004IN-UF for notmuch@notmuchmail.org; Sat, 02 Mar 2019 10:41:38 -0500 Received: (nullmailer pid 25719 invoked by uid 1000); Sat, 02 Mar 2019 15:41:37 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: WIP2: index user headers Date: Sat, 2 Mar 2019 11:41:26 -0400 Message-Id: <20190302154133.25642-1-david@tethera.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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, 02 Mar 2019 15:41:43 -0000 This obsoletes [1] This is getting closer to mergable, but it still needs at least to sanity check the names of user defined prefixes (see point (a) below). The main differences from [1] are (a) xapian prefixes are no longer defined via upper casing, as this is locale dependent. The do rely on a ":" separator, hence the need for some sanitization. (b) The caching of user header/prefix information is now done via string maps, and used more effectively during indexing.