From d52a4bf2a534403c874d7e5e4c90df75904323f1 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 13 Feb 2013 11:57:43 +1600 Subject: [PATCH] Re: Search using email headers does not work --- 5e/c8448a2c36f51c222ec0b017b95e7d87cb555e | 103 ++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 5e/c8448a2c36f51c222ec0b017b95e7d87cb555e diff --git a/5e/c8448a2c36f51c222ec0b017b95e7d87cb555e b/5e/c8448a2c36f51c222ec0b017b95e7d87cb555e new file mode 100644 index 000000000..30c2c96ad --- /dev/null +++ b/5e/c8448a2c36f51c222ec0b017b95e7d87cb555e @@ -0,0 +1,103 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id CAAF8431FBC + for ; Tue, 12 Feb 2013 11:55:03 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.01 +X-Spam-Level: +X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 + tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id UIsJXq-bPHLv for ; + Tue, 12 Feb 2013 11:55:03 -0800 (PST) +Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 4F3B1431FAF + for ; Tue, 12 Feb 2013 11:55:03 -0800 (PST) +Received: from yoom.home.cworth.org (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 8D4B86DE0941; + Tue, 12 Feb 2013 11:55:00 -0800 (PST) +Received: by yoom.home.cworth.org (Postfix, from userid 1000) + id BC81864933; Wed, 13 Feb 2013 06:57:48 +1100 (EST) +From: Carl Worth +To: Michal Vyskocil , notmuch@notmuchmail.org +Subject: Re: Search using email headers does not work +In-Reply-To: <20130212173216.GL7346@zelvantb.site> +References: <20130211145259.GF7346@zelvantb.site> + <87ehgl92e5.fsf@zancas.localnet> + <877gmdo46y.fsf@servo.finestructure.net> + <20130212173216.GL7346@zelvantb.site> +User-Agent: Notmuch/0.13.1 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Tue, 12 Feb 2013 11:57:43 -0800 +Message-ID: <87wqudi9u0.fsf@yoom.home.cworth.org> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha1; protocol="application/pgp-signature" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Tue, 12 Feb 2013 19:55:03 -0000 + +--=-=-= +Content-Transfer-Encoding: quoted-printable + +Michal Vyskocil writes: +> I like such idea - but how hard would be to add a config options to +> extend a list of default headers used for indexing? + +Not hard. + +Obviously, notmuch is already indexing some headers, (From, Date, To, +Subject), and it wouldn't be hard to index more. [*] + +List-Id has been proposed often enough that it should probably be on by +default. + +Then, there are other, slightly more special-case headers, (like headers +added by spam filtering software), that probably would be best added on +an opt-in basis based on a configuration option. + +=2DCarl + +[*] The existing set of indexed headers is really just historical +accident based on two things: + +1. I was originally writing index code to match sup's index building, so + I focused on the headers sup indexed. + +2. I wrote code to index enough headers to satisfy my use case. + +It's embarrassing to me that I added this note to the notmuch TODO file +in October 2009 (and it's still there): + + Add support for the user to specify custom headers to be indexed. + +=2D-=20 +carl.d.worth@intel.com + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iEYEARECAAYFAlEanrcACgkQ6JDdNq8qSWgxnACfVeUYMhYylc5DbEZa/ZadveV6 +s/UAmgOvUQ8C01WbW7v4RArXk6IBM+iw +=5Yoe +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2