From 7b3772c0c58b044a221b69c920d48d3952536d7f Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 13 Feb 2013 09:03:01 +1600 Subject: [PATCH] Re: Search using email headers does not work --- 05/ed1eb9fa234753977e093e9beb8090a2b9853d | 104 ++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 05/ed1eb9fa234753977e093e9beb8090a2b9853d diff --git a/05/ed1eb9fa234753977e093e9beb8090a2b9853d b/05/ed1eb9fa234753977e093e9beb8090a2b9853d new file mode 100644 index 000000000..a350686cb --- /dev/null +++ b/05/ed1eb9fa234753977e093e9beb8090a2b9853d @@ -0,0 +1,104 @@ +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 416CB431FB6 + for ; Tue, 12 Feb 2013 09:03:11 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] 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 FNgZ+AGGQ6jv for ; + Tue, 12 Feb 2013 09:03:10 -0800 (PST) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id A6341431FAF + for ; Tue, 12 Feb 2013 09:03:10 -0800 (PST) +Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by fire-doxen-postvirus (Postfix) with ESMTP id 35594328031; + Tue, 12 Feb 2013 09:03:10 -0800 (PST) +X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new +Received: from finestructure.net (adsl-76-240-184-246.dsl.irvnca.sbcglobal.net + [76.240.184.246]) (Authenticated sender: jrollins) + by fire-doxen-submit (Postfix) with ESMTP id 388EA328043; + Tue, 12 Feb 2013 09:03:05 -0800 (PST) +Received: by finestructure.net (Postfix, from userid 1000) + id A2C4F62219; Tue, 12 Feb 2013 09:03:03 -0800 (PST) +From: Jameson Graef Rollins +To: David Bremner , Michal Vyskocil , + notmuch@notmuchmail.org +Subject: Re: Search using email headers does not work +In-Reply-To: <87ehgl92e5.fsf@zancas.localnet> +References: <20130211145259.GF7346@zelvantb.site> + <87ehgl92e5.fsf@zancas.localnet> +User-Agent: Notmuch/0.15+8~gd4a7374 (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-pc-linux-gnu) +Date: Tue, 12 Feb 2013 09:03:01 -0800 +Message-ID: <877gmdo46y.fsf@servo.finestructure.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha256; 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 17:03:11 -0000 + +--=-=-= +Content-Type: text/plain + +On Tue, Feb 12 2013, David Bremner wrote: +> Unfortunately currently headers other than those references in the +> notmuch-search-terms man page are not indexed. The only workaround I +> can think of without patching notmuch is to use some tool to tag the +> messages you care about. + +I think even more importantly headers other than those that are parsed +are actually thrown to /dev/null. They are not even indexed as plain +text, so you can search for terms in headers as you can for words in the +body. + +I asked this on irc but it got lost in the shuffle: would it make sense +to index the entire header block as plain text? If we did that then at +least the search that Michal was trying would return the expected +results. It would also be a fairly simple change to the indexer. I +don't have a good sense of how much it would pollute the index, though. + +Given how frequently people are asking for alternate header indexing, it +might be something to consider. + +jamie. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iQIcBAEBCAAGBQJRGnXFAAoJEO00zqvie6q8BgEP/3/GSqy7/mWB+ztECZffvfun +i7oo5FNTyq6JguXcuEudlJfOsxWeXc0Y4u3pD1YJP+IXJizr8e0SrcAAhiLjTqD/ +XxEL+2hwRAZt5hDI9l6LYkh3DMO8lTR2VdfkUfJ19AT4OOos1mzy4bG0Y7M+r8Ct +mPkWPU4ucuVkXIiApPwV2A/N1PPfoaCXbXpxFBspr7jA6mW5aj+bpTgkltSVwC0Q +pOA7bACQgOXYYU61gcGorVgg8/nNmwtdL22SAM8QJ9/dKq6+Q3HisgmlcHRpTQvH +7jjhB8O79yyIWbcl3FUe1t2T1CUh0J324HIYbkf4mTEE2tRrVmsGKLet3sQNylGJ +T4m7abBxPbuuFfVUpBmtPInARPOkPgXkUk08rF2mJfGPGx45TPsrBQAhWHElCTLu +YI3cEYrGzDfZFvkGBFRvzRUNFZG7PLQcHEeCuhSM7/zoT9CMkNN/hH2I1otac2lK +zZkjAd1SKydOdqcu6eS9NUwcr39bi5Hm1ozG2kaxSb9wh+PKK0+WpNiak1vBUcaP +pkC2RQFTo+/wrSmfxXVuBFPGXnzzPRWt95U7Jaq2IbIC/aQZPstPPG2F+RqLItj5 +qR4a2cdJHgJmxQrPXdhOEFOGsQukWnG4SRkpfXDl5s9927iZIznb9zRz/M57SYZC +GP7OaqDpqYqz66aynzOs +=H6XL +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2