1 Return-Path: <prvs=310561b183=amdragon@mit.edu>
\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 3303A431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 4 May 2011 14:26:44 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 gqS-3mUm5fX3 for <notmuch@notmuchmail.org>;
\r
16 Wed, 4 May 2011 14:26:43 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id AF1D0431FB5
\r
20 for <notmuch@notmuchmail.org>; Wed, 4 May 2011 14:26:43 -0700 (PDT)
\r
21 X-AuditID: 12074423-b7b68ae0000016f8-fd-4dc1c4923ec9
\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
\r
23 by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 28.33.05880.294C1CD4; Wed, 4 May 2011 17:26:42 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id p44LQfuu020265;
\r
27 Wed, 4 May 2011 17:26:42 -0400
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p44LQesd004944
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Wed, 4 May 2011 17:26:41 -0400 (EDT)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1QHjae-0006tU-JQ; Wed, 04 May 2011 17:26:36 -0400
\r
37 Date: Wed, 4 May 2011 17:26:36 -0400
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Felipe Contreras <felipe.contreras@gmail.com>
\r
40 Subject: Re: [PATCH v2] test/search: add check for slightly trick search
\r
41 Message-ID: <20110504212636.GP29861@mit.edu>
\r
42 References: <1304540796-8865-1-git-send-email-felipe.contreras@gmail.com>
\r
43 <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>
\r
44 <BANLkTimoAmxQk8GgM73PmuB6fjbAF0Hefg@mail.gmail.com>
\r
46 Content-Type: text/plain; charset=iso-8859-1
\r
47 Content-Disposition: inline
\r
48 Content-Transfer-Encoding: 8bit
\r
49 In-Reply-To: <BANLkTimoAmxQk8GgM73PmuB6fjbAF0Hefg@mail.gmail.com>
\r
50 User-Agent: Mutt/1.5.20 (2009-06-14)
\r
51 X-Brightmail-Tracker:
\r
52 H4sIAAAAAAAAA+NgFlrEKsWRmVeSWpSXmKPExsUixCmqrDvpyEFfgzVnlCwOPs6zuH5zJrMD
\r
53 k8fOWXfZPZ6tusUcwBTFbZOUWFIWnJmep2+XwJ2xY/JqtoKN3BUb22eyNjDO4Oxi5OSQEDCR
\r
54 2HvuNSOELSZx4d56ti5GLg4hgX2MEpOnnGWEcNYzSlzbPo8VwjnBJNG3aSpU2RJGibl7t7CB
\r
55 9LMIqEh0dd9hAbHZBDQktu1fDjZXRMBQYm/7VLA4s4C0xLffzUwgtrCAh8Tqu79YQWxeAR2J
\r
56 k5t6odZtZ5TY+GYyM0RCUOLkzCdQzToSO7feAVrGATZo+T8OiLC8RPPW2WDlnAKOEkf3X2AH
\r
57 sUWB7rm2v51tAqPwLCSTZiGZNAth0iwkkxYwsqxilE3JrdLNTczMKU5N1i1OTszLSy3SNdPL
\r
58 zSzRS00p3cQIigV2F+UdjH8OKh1iFOBgVOLhfZd00FeINbGsuDL3EKMkB5OSKK/BYaAQX1J+
\r
59 SmVGYnFGfFFpTmrxIUYJDmYlEd4dvUA53pTEyqrUonyYlDQHi5I471xJdV8hgfTEktTs1NSC
\r
60 1CKYrAwHh5IE71qQoYJFqempFWmZOSUIaSYOThDBBbKBB2iDPkghb3FBYm5xZjpE0SlGRSlx
\r
61 3ikgCQGQREZpHtwAWNJ6xSgO9I8w7wqQKh5gwoPrfgU0mAlosFfzAZDBJYkIKakGxoT/ux8q
\r
62 P2s+cTlz1dEwTvPkZh/vnwXHPTcWdss+URA5r1Je8eErU6ZO8aeNYic4VV2Wfb0xs1tRsNiu
\r
63 VFzsrvJ7jTmqwjJFbLO6IiZ/cBT6Uj+x7pr+LS2vRWfub7nYOnHB82dpDW9y3kmesfM/UftH
\r
64 4vZCmYJFx39/ZOjkKMxf1296yrO7T4mlOCPRUIu5qDgRABO3RC01AwAA
\r
65 Cc: notmuch@notmuchmail.org
\r
66 X-BeenThere: notmuch@notmuchmail.org
\r
67 X-Mailman-Version: 2.1.13
\r
69 List-Id: "Use and development of the notmuch mail system."
\r
70 <notmuch.notmuchmail.org>
\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
74 List-Post: <mailto:notmuch@notmuchmail.org>
\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
77 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
78 X-List-Received-Date: Wed, 04 May 2011 21:26:44 -0000
\r
80 Quoth Felipe Contreras on May 04 at 11:54 pm:
\r
81 > On Wed, May 4, 2011 at 11:46 PM, Austin Clements <amdragon@mit.edu> wrote:
\r
82 > > On Wed, May 4, 2011 at 4:26 PM, Felipe Contreras
\r
83 > > <felipe.contreras@gmail.com> wrote:
\r
84 > >> +output=$(notmuch search from:'search-by-from@' | notmuch_search_sanitize)
\r
86 > > I don't think this does what you think it does. Xapian only
\r
87 > > understands double quotes around phrases, not single quotes.
\r
88 > > Furthermore, a single quote after a prefix prevents that token from
\r
89 > > acting as a prefix, so you search is finding messages containing the
\r
90 > > *word* "from" and the phrase "search by from" *anywhere* (which is a
\r
91 > > phrase not because of the quotes, but because of the hyphens).
\r
93 > > The test results happen to be the same if you use single quotes or
\r
94 > > double quotes, but for very different reasons.
\r
97 > search from:search-by-from@
\r
99 > Would that be better?
\r
101 from:"search-by-from@" would be the fail-safe, since that's clearly a
\r
102 prefixed phrase query in Xapian syntax. from:search-by-from@ depends
\r
103 on the parsing of @, which is precisely what I think you're proposing
\r
104 should be changed (though your commit message talks about hyphens, not
\r
105 @), so in some sense from:search-by-from@ is up to you. It probably
\r
106 *should* work, given that @ happens to be classified the same way as
\r
107 hyphen by the Xapian parser (or, in the custom query parser, because @
\r