Re: How to index arbitrary headers?
authorAustin Clements <amdragon@MIT.EDU>
Mon, 1 Oct 2012 15:43:09 +0000 (11:43 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:41 +0000 (09:49 -0800)
32/226d02b3298e00335119a8e08d9353278673e2 [new file with mode: 0644]

diff --git a/32/226d02b3298e00335119a8e08d9353278673e2 b/32/226d02b3298e00335119a8e08d9353278673e2
new file mode 100644 (file)
index 0000000..c47e25a
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <amdragon@mit.edu>\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 B0C06431FBF\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Oct 2012 08:43:13 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 M9gyORWJCnzY for <notmuch@notmuchmail.org>;\r
+       Mon,  1 Oct 2012 08:43:13 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU\r
+       [18.9.25.14])\r
+       by olra.theworths.org (Postfix) with ESMTP id 31F2F431FAE\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Oct 2012 08:43:13 -0700 (PDT)\r
+X-AuditID: 1209190e-b7f756d000000904-6b-5069ba10a9b5\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 90.27.02308.01AB9605; Mon,  1 Oct 2012 11:43:12 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q91FhBQd006028; \r
+       Mon, 1 Oct 2012 11:43:12 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q91Fh94X014695\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Mon, 1 Oct 2012 11:43:11 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1TIi9F-0004yo-KA; Mon, 01 Oct 2012 11:43:09 -0400\r
+Date: Mon, 1 Oct 2012 11:43:09 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Petri Savolainen <petri@koodaamo.fi>\r
+Subject: Re: How to index arbitrary headers?\r
+Message-ID: <20121001154309.GE26662@mit.edu>\r
+References:\r
+ <CACXwgK9bmyqUMmw9LNhqc7o86_LXx8agQByusBiQt_wRbQ8O=w@mail.gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=iso-8859-1\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: 8bit\r
+In-Reply-To:\r
+ <CACXwgK9bmyqUMmw9LNhqc7o86_LXx8agQByusBiQt_wRbQ8O=w@mail.gmail.com>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsUixG6noiuwKzPA4M9nTYvrN2cyW1xcx+TA\r
+       5LHrTrzHs1W3mAOYorhsUlJzMstSi/TtErgyupoMCmawVxzpus/WwHiJtYuRk0NCwETi1/SP\r
+       jBC2mMSFe+vZuhi5OIQE9jFKzF70kxHCWc8o0bG5B8o5wSTR19wI5SxhlGhcu4cZpJ9FQEVi\r
+       76ZXYDabgIbEtv3LweaKANktP3uYQGxmAWmJb7+bwWxhAR2Jb39PgdXwAtkHVh0AiwsJBEic\r
+       vvOIDSIuKHFy5hMWiF4diZ1b7wDFOcDmLP/HARGWl2jeOhtsLadAoET/0y9gtijQOVNObmOb\r
+       wCg8C8mkWUgmzUKYNAvJpAWMLKsYZVNyq3RzEzNzilOTdYuTE/PyUot0jfVyM0v0UlNKNzGC\r
+       YoBTkm8H49eDSocYBTgYlXh4F1zOCBBiTSwrrsw9xCjJwaQkyvt2W2aAEF9SfkplRmJxRnxR\r
+       aU5q8SFGCQ5mJRFe+xygHG9KYmVValE+TEqag0VJnPdKyk1/IYH0xJLU7NTUgtQimKwMB4eS\r
+       BO+VHUCNgkWp6akVaZk5JQhpJg5OkOE8QMOPgdTwFhck5hZnpkPkTzEqSonzzgJJCIAkMkrz\r
+       4HphKeoVozjQK8K8W0CqeIDpDa77FdBgJqDBVavSQAaXJCKkpBoYPZU+te1cEFLQH5DolfNH\r
+       UtTGsW4in8a97/9sdi+q9+n+unaJzKo0T4e3NQ9UD6Ylh9efWDKF89EFcxZRhtsXY+4FZq+5\r
+       fDMpZ1Oep5Lr5ygH96tcxxiV8gySOYuWXQwwn5Jz6ufmbY6tE2PmcuY97pyWfLc9ZEkQ59t4\r
+       /oa9Z38trTxzb8pVJZbijERDLeai4kQAQxGFEiwDAAA=\r
+Cc: notmuch@notmuchmail.org\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: Mon, 01 Oct 2012 15:43:13 -0000\r
+\r
+Quoth Petri Savolainen on Oct 01 at  3:39 pm:\r
+>    Hello,\r
+>    I could not find information anywhere in notmuch docs about what is\r
+>    actually indexed - specifically, what email headers are indexed and\r
+>    searchable? If a header is not indexed, does searching for its value still\r
+>    result in a search hit?\r
+>    It would be nice if one could just provide the list of headers to be\r
+>    indexed in some configuration file or something.\r
+>    Thanks,\r
+>     Petri\r
+\r
+notmuch doesn't currently implement this, though it is an\r
+oft-requested feature.  One (not insurmountable) difficulty is that\r
+the database would have to be rebuilt if a user-configured list of\r
+headers changed and there are technical limitations that prevent us\r
+from simply indexing all headers.  Out of curiosity, what headers are\r
+you interested in indexing?\r
+\r
+The currently indexed headers are described in man\r
+notmuch-search-terms.\r