Re: Search using email headers does not work
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 12 Feb 2013 17:03:01 +0000 (09:03 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:34 +0000 (09:53 -0800)
05/ed1eb9fa234753977e093e9beb8090a2b9853d [new file with mode: 0644]

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