Re: Problem with draft mails when using offlineimap
[notmuch-archives.git] / 30 / 431a9080148eb7d9a0578fed83503e04a8feb5
1 Return-Path: <amdragon@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 222A9431FB6\r
6         for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:46:24 -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.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         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 YtbwE7TV+i9v for <notmuch@notmuchmail.org>;\r
17         Wed,  4 May 2011 13:46:22 -0700 (PDT)\r
18 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
19         [209.85.216.181]) (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 7AAA7431FB5\r
22         for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:46:22 -0700 (PDT)\r
23 Received: by qyg14 with SMTP id 14so1308551qyg.5\r
24         for <notmuch@notmuchmail.org>; Wed, 04 May 2011 13:46:21 -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:sender:in-reply-to:references:date\r
27         :x-google-sender-auth:message-id:subject:from:to:cc:content-type;\r
28         bh=OZfwGwDh1VJS6Mp60ZzqNWfYgkSsF8toM7STueltqyY=;\r
29         b=mVedvGcwdZzNROwo88paVWdXVlFKtfEH3p0QaLf//atwHOZTkgiL7ANfWyWtMCimQw\r
30         Wzid8KZWJy9WIbadcj6xdghbfhQi+smo+mVrggvz/RfulQj5EUSjR0qypaqZiKg2AkiI\r
31         GaVwyQzgL+5B5mDdcMYrkqGbp9iCiDLEfpJ/E=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=mime-version:sender:in-reply-to:references:date\r
34         :x-google-sender-auth:message-id:subject:from:to:cc:content-type;\r
35         b=ZIUZ4ItRGhPCPOGbO/kqrqQq68tXf5q+zDxFWwh4XBZdSjBocps5mGpNtygcSNP3aR\r
36         FlHRV/UBSpDzJv5lU5bG+fuWzS6O7w6IWaNfNL1YQDhhTZ6xjR8FKJn5Y1uCRAqdlZqo\r
37         y1B6JGagLtiq6GXuijGba1zEMDez0P1t5MZns=\r
38 MIME-Version: 1.0\r
39 Received: by 10.229.206.42 with SMTP id fs42mr1230626qcb.150.1304541981722;\r
40         Wed, 04 May 2011 13:46:21 -0700 (PDT)\r
41 Sender: amdragon@gmail.com\r
42 Received: by 10.229.233.17 with HTTP; Wed, 4 May 2011 13:46:21 -0700 (PDT)\r
43 In-Reply-To: <1304540796-8865-1-git-send-email-felipe.contreras@gmail.com>\r
44 References: <1304540796-8865-1-git-send-email-felipe.contreras@gmail.com>\r
45 Date: Wed, 4 May 2011 16:46:21 -0400\r
46 X-Google-Sender-Auth: xZrMj3CY4Q3OujZVsc_yURndGCw\r
47 Message-ID: <BANLkTi=5nv+iC13t8MEg+M4Mx-Gt0ggH_Q@mail.gmail.com>\r
48 Subject: Re: [PATCH v2] test/search: add check for slightly trick search\r
49 From: Austin Clements <amdragon@mit.edu>\r
50 To: Felipe Contreras <felipe.contreras@gmail.com>\r
51 Content-Type: text/plain; charset=ISO-8859-1\r
52 Cc: notmuch@notmuchmail.org\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Wed, 04 May 2011 20:46:24 -0000\r
66 \r
67 On Wed, May 4, 2011 at 4:26 PM, Felipe Contreras\r
68 <felipe.contreras@gmail.com> wrote:\r
69 > +output=$(notmuch search from:'search-by-from@' | notmuch_search_sanitize)\r
70 \r
71 I don't think this does what you think it does.  Xapian only\r
72 understands double quotes around phrases, not single quotes.\r
73 Furthermore, a single quote after a prefix prevents that token from\r
74 acting as a prefix, so you search is finding messages containing the\r
75 *word* "from" and the phrase "search by from" *anywhere* (which is a\r
76 phrase not because of the quotes, but because of the hyphens).\r
77 \r
78 The test results happen to be the same if you use single quotes or\r
79 double quotes, but for very different reasons.\r