Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / cc / 6737a67c1d9909f77df92dd02e70f0420dee1e
1 Return-Path: <david@tethera.net>\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 9F7B3431FC7\r
6         for <notmuch@notmuchmail.org>; Sat, 28 Feb 2015 01:13:57 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 220HswICT1ha for <notmuch@notmuchmail.org>;\r
16         Sat, 28 Feb 2015 01:13:54 -0800 (PST)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224])\r
19         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 5B2D7431FB6\r
22         for <notmuch@notmuchmail.org>; Sat, 28 Feb 2015 01:13:54 -0800 (PST)\r
23 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
24         4.80) (envelope-from <david@tethera.net>)\r
25         id 1YRdMl-0004a8-GB; Sat, 28 Feb 2015 09:07:19 +0000\r
26 Received: (nullmailer pid 25864 invoked by uid 1000); Sat, 28 Feb 2015\r
27         09:07:06 -0000\r
28 From: David Bremner <david@tethera.net>\r
29 To: Matthew Lear <matt@bubblegen.co.uk>, Jani Nikula <jani@nikula.org>\r
30 Subject: Re: Inspired but need help searching folder names containing spaces\r
31 In-Reply-To: <79D823A8-925A-478E-9734-9702C311A4F8@bubblegen.co.uk>\r
32 References: <54E3BAE1.1030004@bubblegen.co.uk>\r
33         <87pp97sldj.fsf@maritornes.cs.unb.ca>\r
34         <ed7f5ff35a6d784885b68666fe5b5898.squirrel@webmail.plus.net>\r
35         <87zj88wjgy.fsf@nikula.org>\r
36         <79D823A8-925A-478E-9734-9702C311A4F8@bubblegen.co.uk>\r
37 User-Agent: Notmuch/0.19+48~gb74ed1c (http://notmuchmail.org) Emacs/24.4.1\r
38         (x86_64-pc-linux-gnu)\r
39 Date: Sat, 28 Feb 2015 10:07:06 +0100\r
40 Message-ID: <87wq328kw5.fsf@maritornes.cs.unb.ca>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain\r
43 Cc: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Sat, 28 Feb 2015 09:13:57 -0000\r
57 \r
58 Matthew Lear <matt@bubblegen.co.uk> writes:\r
59 \r
60 >\r
61 > Thanks. Explains everything. Any thoughts on searching on 'to' only?\r
62 > I'm not sure if this is also related to what Xapian needs to be\r
63 > provided with. If not, and if only searching in the to, cc and bcc\r
64 > fields of the header is possible, maybe we could consider adopting and\r
65 > integrating case sensitive syntax in notmuch such as TO:me rather than\r
66 > to:me..?\r
67 \r
68 I'm not sure about the exact syntax, but some separate prefix to mean\r
69 only in the To header would be possible. As far as I know we'd need to\r
70 add more terms to the database [1], so you'd need to convince people\r
71 that the increase in the size of everyone's database was worthwhile. And\r
72 of course someone needs to write the code, but it would not be that\r
73 hard, I think. \r
74 \r
75 d\r
76 \r
77 [1]: this could also be solved with the semi-mythical custom query parser.\r