Re: How to index arbitrary headers?
authorDmitrijs Ledkovs <xnox@debian.org>
Thu, 4 Oct 2012 16:25:08 +0000 (17:25 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:44 +0000 (09:49 -0800)
a1/4b75cec46d43e43cf9ad1e7dfcafc99e16c2a5 [new file with mode: 0644]

diff --git a/a1/4b75cec46d43e43cf9ad1e7dfcafc99e16c2a5 b/a1/4b75cec46d43e43cf9ad1e7dfcafc99e16c2a5
new file mode 100644 (file)
index 0000000..fc3dc3a
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <dmitrij.ledkov@surgut.co.uk>\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 81D9F431FBD\r
+       for <notmuch@notmuchmail.org>; Thu,  4 Oct 2012 09:25:11 -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 NOJ+YfJEJ6R5 for <notmuch@notmuchmail.org>;\r
+       Thu,  4 Oct 2012 09:25:11 -0700 (PDT)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B85CA431FAE\r
+       for <notmuch@notmuchmail.org>; Thu,  4 Oct 2012 09:25:10 -0700 (PDT)\r
+Received: by mail-bk0-f53.google.com with SMTP id jg15so465247bkc.26\r
+       for <notmuch@notmuchmail.org>; Thu, 04 Oct 2012 09:25:09 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=mime-version:sender:x-originating-ip:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:content-type\r
+       :content-transfer-encoding:x-gm-message-state;\r
+       bh=z+ZkUGRG641dDE/vMvFXfcRfByUePJoBoYiAiW4u+ZU=;\r
+       b=KE78K4ppDqyMigWhhyBmjbdfXpgGkgsbcONVOituK78UzoXjOjW+2am9VO7C9DfDuZ\r
+       lCWXN1DVFfdS4wN0s9/aeqSOvDDcwICAyGOOD8yttJIBPfmJXh3jMQEsjoTDVXBgMPE4\r
+       cmLv5xWi8/4yXn224vFyDRcGjU+M+eegs2604WhaCBXnNlmKOoI88k+R6Tuk4FcAqEtm\r
+       b84cFjXo02nlarrNZ4wvC70mcRPWvD2PXo4aNKT8On03APhQbWaAltTJOtBXZfG95UqX\r
+       MN/m4pbVJvXfjR1CSqou0bi2duW5Qn2J6pn6oFmlv1amLPI0qib0+mzbakcnG9GmVYiM\r
+       XSKQ==\r
+MIME-Version: 1.0\r
+Received: by 10.205.118.135 with SMTP id fq7mr1835620bkc.50.1349367908977;\r
+       Thu, 04 Oct 2012 09:25:08 -0700 (PDT)\r
+Sender: dmitrij.ledkov@surgut.co.uk\r
+Received: by 10.205.45.4 with HTTP; Thu, 4 Oct 2012 09:25:08 -0700 (PDT)\r
+X-Originating-IP: [86.26.160.15]\r
+In-Reply-To: <87vceqh02v.fsf@kiwwwi.com.ar>\r
+References:\r
+ <CACXwgK9bmyqUMmw9LNhqc7o86_LXx8agQByusBiQt_wRbQ8O=w@mail.gmail.com>\r
+       <20121001154309.GE26662@mit.edu> <87vceqh02v.fsf@kiwwwi.com.ar>\r
+Date: Thu, 4 Oct 2012 17:25:08 +0100\r
+X-Google-Sender-Auth: ohvYmZEamxUluv0YJ-3O1MwEUo0\r
+Message-ID:\r
+ <CANBHLUh+kJWgG0Z2TjyJznhU0YVD+C0WCQwwXP3ciX5V+cmLoQ@mail.gmail.com>\r
+Subject: Re: How to index arbitrary headers?\r
+From: Dmitrijs Ledkovs <xnox@debian.org>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-Gm-Message-State:\r
+ ALoCoQkXvNbCtT6eSbEy8d2BdxnaBsL5RkbIyUp9QGKYI4ZjN5g4gjgfQAjZ2vJbG4TDk/Wstse3\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: Thu, 04 Oct 2012 16:25:11 -0000\r
+\r
+On 4 October 2012 13:51, Nicol=C3=A1s Reynolds <fauno@kiwwwi.com.ar> wrote:\r
+> Austin Clements <amdragon@MIT.EDU> writes:\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=\r
+ 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
+>\r
+> maybe related: is it possible to index only the headers and not the mail\r
+> body?\r
+>\r
+\r
+Checkout project `afew` which pipes complete emails and assigns tags\r
+based on the parse result.\r
+It may be sufficient for your purpose.\r
+Or you can modify notmuch to index the stuff you want.\r
+\r
+Regards,\r
+\r
+Dmitrijs.\r