Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 68 / f636998c8fa5e08826358e3f996d4a40a16d84
1 Return-Path: <felipe.contreras@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 B4BB6431FB6\r
6         for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:54:07 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 650OeQqvfmu3 for <notmuch@notmuchmail.org>;\r
17         Wed,  4 May 2011 13:54:07 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 30F81431FB5\r
22         for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:54:07 -0700 (PDT)\r
23 Received: by fxm8 with SMTP id 8so1148220fxm.26\r
24         for <notmuch@notmuchmail.org>; Wed, 04 May 2011 13:54:05 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:in-reply-to:references:date\r
27         :message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding;\r
29         bh=Aqy/chQrjhQmB8jD1hTBublJ9G2DcXEZc1r6Nfmvfw4=;\r
30         b=OVRIgQeaNWx5QPHVe8JbeDs2JDggyVXX58ROHA6TiOCxynRc/77Y8VnwJh5kGBxQq4\r
31         GgUsq6VxzozU7J5hSAsQbauqI+eUIWt9vnM2/VJxuFsoFTVYCc8nY4lE1EMEUWeucNsm\r
32         SChltFnckEiUhujMTRRtppAEqvrxctijEKKy4=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
35         :cc:content-type:content-transfer-encoding;\r
36         b=InFJvdhSk5kuSnaAeJaHXKBKM50ku60ufRlpJfPZmoT87Dnatw19PQPoaxD+yrKRS7\r
37         hdeYwK4+KDkkZ9aZtoATLYl5my2nNaoZsCEBe/IxBIoVVM4XwwRAbaqEy7AnrTE2ruGo\r
38         fZTgoqe4W07Z0H5iAEioFTmCYAGEImJ3Wm4JM=\r
39 MIME-Version: 1.0\r
40 Received: by 10.223.24.134 with SMTP id v6mr346745fab.146.1304542445868; Wed,\r
41         04 May 2011 13:54:05 -0700 (PDT)\r
42 Received: by 10.223.74.130 with HTTP; Wed, 4 May 2011 13:54:05 -0700 (PDT)\r
43 In-Reply-To: <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>\r
44 References: <1304540796-8865-1-git-send-email-felipe.contreras@gmail.com>\r
45         <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>\r
46 Date: Wed, 4 May 2011 23:54:05 +0300\r
47 Message-ID: <BANLkTimoAmxQk8GgM73PmuB6fjbAF0Hefg@mail.gmail.com>\r
48 Subject: Re: [PATCH v2] test/search: add check for slightly trick search\r
49 From: Felipe Contreras <felipe.contreras@gmail.com>\r
50 To: Austin Clements <amdragon@mit.edu>\r
51 Content-Type: text/plain; charset=UTF-8\r
52 Content-Transfer-Encoding: quoted-printable\r
53 Cc: notmuch@notmuchmail.org\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Wed, 04 May 2011 20:54:07 -0000\r
67 \r
68 On Wed, May 4, 2011 at 11:46 PM, Austin Clements <amdragon@mit.edu> wrote:\r
69 > On Wed, May 4, 2011 at 4:26 PM, Felipe Contreras\r
70 > <felipe.contreras@gmail.com> wrote:\r
71 >> +output=3D$(notmuch search from:'search-by-from@' | notmuch_search_sanit=\r
72 ize)\r
73 >\r
74 > I don't think this does what you think it does. =C2=A0Xapian only\r
75 > understands double quotes around phrases, not single quotes.\r
76 > Furthermore, a single quote after a prefix prevents that token from\r
77 > acting as a prefix, so you search is finding messages containing the\r
78 > *word* "from" and the phrase "search by from" *anywhere* (which is a\r
79 > phrase not because of the quotes, but because of the hyphens).\r
80 >\r
81 > The test results happen to be the same if you use single quotes or\r
82 > double quotes, but for very different reasons.\r
83 \r
84 Ok, how about:\r
85 search from:search-by-from@\r
86 \r
87 Would that be better?\r
88 \r
89 --=20\r
90 Felipe Contreras\r