From 42e934dff6a873b9c5f0050370f96931e8cab53d Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Mon, 1 Oct 2012 15:39:32 +0300 Subject: [PATCH] How to index arbitrary headers? --- dd/3f4cce7d99faa3e0e7f6e57142fdb88b888da1 | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 dd/3f4cce7d99faa3e0e7f6e57142fdb88b888da1 diff --git a/dd/3f4cce7d99faa3e0e7f6e57142fdb88b888da1 b/dd/3f4cce7d99faa3e0e7f6e57142fdb88b888da1 new file mode 100644 index 000000000..021a399ec --- /dev/null +++ b/dd/3f4cce7d99faa3e0e7f6e57142fdb88b888da1 @@ -0,0 +1,93 @@ +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 5ED89431FBF + for ; Mon, 1 Oct 2012 05:39:34 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 SW42s80MPolZ for ; + Mon, 1 Oct 2012 05:39:33 -0700 (PDT) +Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com + [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A25B5431FAE + for ; Mon, 1 Oct 2012 05:39:33 -0700 (PDT) +Received: by lbbgg6 with SMTP id gg6so4116002lbb.26 + for ; Mon, 01 Oct 2012 05:39:32 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=mime-version:x-originating-ip:date:message-id:subject:from:to + :content-type:x-gm-message-state; + bh=rFma2o1zpuPMZcWJd+GThESBpaSU3Fhcg5mskW8J+34=; + b=XXYNqWsD9qwtaJgFf0zntorJXFS2m3MUIL8K6PcXX/pq9ZCt/5EWdGUzomY01/lpCf + un2Cnrl+R1Cy0ziAWn+IWhbZesxgQze8uaQH+InxkNIrEm3dgvFNQpvgd6dAdR+75Zgb + d+p5+4WoZyWKgZplDpr+poM/2kHwb+7inL4kaNA531XYJ8pymOMQKnxKX9lQ5zOiuGxX + k5LGh9V7+d2cOgXEux7aPnnwkQKXNGdaiLac3PvOH4nfyD5KJQhGPisldXmRgYgR6gMT + i3zK2Erswxs6pz0HslWGFxr221TqFaZWzQQUhwrgcBMZb/94LP1pGDVOnk1+IHrHRE7H + 7I+Q== +MIME-Version: 1.0 +Received: by 10.152.133.140 with SMTP id pc12mr855169lab.53.1349095172131; + Mon, 01 Oct 2012 05:39:32 -0700 (PDT) +Received: by 10.112.42.5 with HTTP; Mon, 1 Oct 2012 05:39:32 -0700 (PDT) +X-Originating-IP: [91.155.82.121] +Date: Mon, 1 Oct 2012 15:39:32 +0300 +Message-ID: + +Subject: How to index arbitrary headers? +From: Petri Savolainen +To: notmuch@notmuchmail.org +Content-Type: multipart/alternative; boundary=f46d042dfe9980c9d104cafeb24e +X-Gm-Message-State: + ALoCoQlCvSZkws1mAHSzlzuiaxb/yKe7CZCqOr94Zhg3PaQncw2I5J2D5AXjJyKHy53jBHJb3ChP +X-Mailman-Approved-At: Mon, 01 Oct 2012 06:39:02 -0700 +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: Mon, 01 Oct 2012 12:39:34 -0000 + +--f46d042dfe9980c9d104cafeb24e +Content-Type: text/plain; charset=ISO-8859-1 + +Hello, + +I could not find information anywhere in notmuch docs about what is +actually indexed - specifically, what email headers are indexed and +searchable? If a header is not indexed, does searching for its value still +result in a search hit? + +It would be nice if one could just provide the list of headers to be +indexed in some configuration file or something. + +Thanks, + + Petri + +--f46d042dfe9980c9d104cafeb24e +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +Hello,

I could not find information anywhere in notmuch = +docs about what is actually indexed - specifically, what email headers are = +indexed and searchable? If a header is not indexed, does searching for its = +value still result in a search hit?
+

It would be nice if one could just provide the list of = +headers to be indexed in some configuration file or something.
Thanks,

=A0Petri
+ +--f46d042dfe9980c9d104cafeb24e-- -- 2.26.2