Searching on arbitrary message headers
[notmuch-archives.git] / ee / 802fc2151c613e97d13a297b36566e51b05471
1 Return-Path: <thisfred@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 82CEB40B96F\r
6         for <notmuch@notmuchmail.org>; Tue, 27 Jul 2010 08:23:36 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.999\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13         DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]\r
14         autolearn=ham\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id X1DL9RXw6kgP for <notmuch@notmuchmail.org>;\r
18         Tue, 27 Jul 2010 08:23:26 -0700 (PDT)\r
19 Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com\r
20         [209.85.212.53])\r
21         by olra.theworths.org (Postfix) with ESMTP id 030E74196F2\r
22         for <notmuch@notmuchmail.org>; Tue, 27 Jul 2010 08:23:25 -0700 (PDT)\r
23 Received: by vws15 with SMTP id 15so3506159vws.26\r
24         for <notmuch@notmuchmail.org>; Tue, 27 Jul 2010 08:23:25 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:received:received:message-id:date:from\r
27         :user-agent:mime-version:to:subject:content-type\r
28         :content-transfer-encoding;\r
29         bh=SWiy5yKxPDGKHRFN1O3vQWiCP8jot2nghIb4IVlnU8k=;\r
30         b=cLujoqU3GFEvXS+ZuxTf6MvzJeeNT3hBPoklCfYZo8wEecYi8GXPD5sR0wLM6LsxHv\r
31         /9XE0PoPtkGjOhYhwnKqv/xoq6guELGV6A1TdJxAciMxT0QPTfNUvy27vrDJ6yeOIZIJ\r
32         sggKpgnLR1KR01jvJjnYNJOT0oEnld/SGA3CU=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=message-id:date:from:user-agent:mime-version:to:subject\r
35         :content-type:content-transfer-encoding;\r
36         b=OR/MmX0vrL113kYYk48U7iYfLaK0FzxBIsK/0THefnC6YlgNnaCoNA3l5aEpkCl9hN\r
37         kVPwUHlJqLQis/SAoXeZSZxcfUBOKA/sJeS2cbfdP2ZuQTPXLikg9dzX7zEHgA1gGQI6\r
38         TEueUjXLfuAJG7eDBShiQVupViymI7emwQEIY=\r
39 Received: by 10.220.87.70 with SMTP id v6mr5208309vcl.226.1280244204619;\r
40         Tue, 27 Jul 2010 08:23:24 -0700 (PDT)\r
41 Received: from [10.1.10.12] (c-98-204-215-244.hsd1.md.comcast.net\r
42         [98.204.215.244])\r
43         by mx.google.com with ESMTPS id w31sm2633174vbs.5.2010.07.27.08.23.23\r
44         (version=SSLv3 cipher=RC4-MD5); Tue, 27 Jul 2010 08:23:23 -0700 (PDT)\r
45 Message-ID: <4C4EF9E9.2000801@gmail.com>\r
46 Date: Tue, 27 Jul 2010 11:23:21 -0400\r
47 From: eric casteleijn <thisfred@gmail.com>\r
48 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;\r
49         rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6\r
50 MIME-Version: 1.0\r
51 To: notmuch@notmuchmail.org\r
52 Subject: Searching on arbitrary message headers\r
53 Content-Type: text/plain; charset=ISO-8859-1; format=flowed\r
54 Content-Transfer-Encoding: 7bit\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Tue, 27 Jul 2010 15:23:36 -0000\r
68 \r
69 Hi list,\r
70 \r
71 after a tip from a colleague I've installed notmuch over the weekend, \r
72 and I'm impressed with its speed and flexibility to the point that I'd \r
73 really like to switch to using it exclusively.\r
74 \r
75 To be able to do that there is one thing I need that I haven't figured \r
76 out how to do yet, or indeed if it's possible at all currently: Is there \r
77 a way to search in arbitrary headers? From initial experimentation, it \r
78 seems not: I can search in headers that are explicitly indexed, such as \r
79 subject:, to: and from:, or in the body text, but it does not seem that \r
80 the raw message is indexed, and I've not found a way to add additional \r
81 indexes.\r
82 \r
83 My specific use case is that I get a lot of automated mail from \r
84 launchpad, which uses headers like 'X-Launchpad-Message-Rationale' to \r
85 indicate why a particular message is being delivered to me. Thunderbird \r
86 allows me to filter on arbitrary headers, which means I can divert \r
87 messages that are unlikely to need my attention so that they don't hit \r
88 my inbox.\r
89 \r
90 I realize that indexing the raw message is probably not a good idea, \r
91 since for instance the routing of a particular message is unlikely to be \r
92 of interest, but I was wondering if there is a way to specify additional \r
93 headers to be indexed by notmuch, or if not, if others would find this a \r
94 worthwhile addition?\r
95 \r
96 -- \r
97 eric casteleijn\r
98 https://code.launchpad.net/~thisfred\r
99 http://thisfred.posterous.com/\r