Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 81 / 7c951954a1b06568f747b307b7a4e8ef7dec91
1 Return-Path: <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 1B297431FAF\r
6         for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 22:28:02 -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: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 mRQKWbzv7B1w for <notmuch@notmuchmail.org>;\r
16         Fri,  7 Dec 2012 22:28:01 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
18         [18.7.68.37])\r
19         by olra.theworths.org (Postfix) with ESMTP id 8031C431FAE\r
20         for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 22:28:01 -0800 (PST)\r
21 X-AuditID: 12074425-b7f606d0000008ea-77-50c2ddf12cda\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
23         by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 4C.1E.02282.1FDD2C05; Sat,  8 Dec 2012 01:28:01 -0500 (EST)\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 qB86Rx4h002158; \r
27         Sat, 8 Dec 2012 01:28:00 -0500\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 qB86RuQd028705\r
32         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
33         Sat, 8 Dec 2012 01:27:59 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1ThDtE-0000NH-9C; Sat, 08 Dec 2012 01:27:56 -0500\r
37 Date: Sat, 8 Dec 2012 01:27:56 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Tomi Ollila <tomi.ollila@iki.fi>\r
40 Subject: Re: Tags with spaces\r
41 Message-ID: <20121208062739.GG4422@mit.edu>\r
42 References:\r
43  <CAHmME9oyWuKmAZw6U80qu9J0XFnFg75JgZ04JCxZxvACsjWPsw@mail.gmail.com>\r
44         <m21uf1kqre.fsf@guru.guru-group.fi>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Content-Disposition: inline\r
48 In-Reply-To: <m21uf1kqre.fsf@guru.guru-group.fi>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFupileLIzCtJLcpLzFFi42IR4hRV1v1491CAwbTDrBYPrkpZXL85k9ni\r
52         zcp5rA7MHoe/LmTxeLbqFrPH5L9PmQOYo7hsUlJzMstSi/TtErgyjj5rYinoYav49re4gfET\r
53         SxcjJ4eEgInE040HoGwxiQv31rN1MXJxCAnsY5S4/e4FM0hCSGA9o8TJOywQiQtMEo+fToRy\r
54         ljBKtC98xgpSxSKgIvG4sYERxGYT0JDYtn85mC0CFH/Qth6shlnAWWLSnttg64QFZCVmrG0B\r
55         s3kFtCUmfdoIVM8BNLRMYu56T4iwoMTJmU9YIFq1JG78e8kEUsIsIC2x/B8HSJhTwEDixvVT\r
56         YCWiQJumnNzGNoFRaBaS7llIumchdC9gZF7FKJuSW6Wbm5iZU5yarFucnJiXl1qka6GXm1mi\r
57         l5pSuokRFOTsLqo7GCccUjrEKMDBqMTDe0PkUIAQa2JZcWXuIUZJDiYlUV7fm0AhvqT8lMqM\r
58         xOKM+KLSnNTiQ4wSHMxKIryrtgHleFMSK6tSi/JhUtIcLErivDdSbvoLCaQnlqRmp6YWpBbB\r
59         ZGU4OJQkeL/eBmoULEpNT61Iy8wpQUgzcXCCDOcBGt52B2R4cUFibnFmOkT+FKOilDivBEiz\r
60         AEgiozQPrheWhF4xigO9IszLBExJQjzABAbX/QpoMBPQ4Cj2/SCDSxIRUlINjPVhZq9nalVc\r
61         WZmkN3G3fXSdzZ3524xSp1s/eLgj86OK7/7L6RHbYp91HRJf+HX2s7qLq5xPMFRNNdnpLVbD\r
62         4BAY0ayw/3rU/Pd2j6dHLYkrU8r0urR358z/Nt28bCky0eWxD3/828x+9qciC6fV9SzzeQdf\r
63         nnIziVFXEFuuku6+T/nO+boHskosxRmJhlrMRcWJAEyDazcdAwAA\r
64 Cc: notmuch@notmuchmail.org\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Sat, 08 Dec 2012 06:28:02 -0000\r
78 \r
79 Quoth Tomi Ollila on Dec 08 at  8:21 am:\r
80 > On Sat, Dec 08 2012, "Jason A. Donenfeld" <Jason@zx2c4.com> wrote:\r
81\r
82 > > Do we support them? Are we going to?\r
83 > >\r
84 > > This doesn't work:\r
85 > > notmuch search -tag:"This has spaces"\r
86 > >\r
87 > > Nor does:\r
88 > > notmuch search "-tag:This has spaces"\r
89\r
90 > This might work:\r
91\r
92 > notmuch search "-tag:'This has spaces'"\r
93 \r
94 Xapian's query parser doesn't recognize single quotes, unfortunately.\r
95 \r
96 When in doubt,\r
97 \r
98 $ NOTMUCH_DEBUG_QUERY=1 notmuch search '-tag:"This tag has spaces"'\r
99 Final query is:\r
100 Xapian::Query((Tmail AND 0 * KThis tag has spaces))\r
101 \r
102 $ NOTMUCH_DEBUG_QUERY=1 notmuch search "-tag:'This tag has spaces'"\r
103 Final query is:\r
104 Xapian::Query((Tmail AND ((Ztag:(pos=1) AND Zhas:(pos=2) AND Zspace:(pos=3)) AND_NOT K'This)))\r