Re: Tags with spaces
authorAustin Clements <amdragon@MIT.EDU>
Sat, 8 Dec 2012 06:24:16 +0000 (01:24 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:45 +0000 (09:51 -0800)
0c/fe3b609f72f6821ec779b6827f449fccc5531d [new file with mode: 0644]

diff --git a/0c/fe3b609f72f6821ec779b6827f449fccc5531d b/0c/fe3b609f72f6821ec779b6827f449fccc5531d
new file mode 100644 (file)
index 0000000..b2c7d5b
--- /dev/null
@@ -0,0 +1,93 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3DFD3431FAF\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 22:24:22 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id a99op5IKoxdi for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Dec 2012 22:24:21 -0800 (PST)\r
+Received: from dmz-mailsec-scanner-5.mit.edu (DMZ-MAILSEC-SCANNER-5.MIT.EDU\r
+       [18.7.68.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id C6383431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 22:24:21 -0800 (PST)\r
+X-AuditID: 12074422-b7fe46d0000008d2-a7-50c2dd14bf59\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id D2.24.02258.41DD2C05; Sat,  8 Dec 2012 01:24:20 -0500 (EST)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qB86OJ5b022263; \r
+       Sat, 8 Dec 2012 01:24:20 -0500\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qB86OH6O028486\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Sat, 8 Dec 2012 01:24:18 -0500 (EST)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1ThDph-0000MP-01; Sat, 08 Dec 2012 01:24:17 -0500\r
+Date: Sat, 8 Dec 2012 01:24:16 -0500\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: "Jason A. Donenfeld" <Jason@zx2c4.com>\r
+Subject: Re: Tags with spaces\r
+Message-ID: <20121208062416.GF4422@mit.edu>\r
+References:\r
+ <CAHmME9oyWuKmAZw6U80qu9J0XFnFg75JgZ04JCxZxvACsjWPsw@mail.gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To:\r
+ <CAHmME9oyWuKmAZw6U80qu9J0XFnFg75JgZ04JCxZxvACsjWPsw@mail.gmail.com>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IRYrdT0RW5eyjAoKNT0eLBVSmL6zdnMjsw\r
+       eTxbdYvZY/Lfp8wBTFFcNimpOZllqUX6dglcGQ+eHGIt2MZSceHVGqYGxn3MXYycHBICJhLT\r
+       1l1ihbDFJC7cW8/WxcjFISSwj1Giff5URghnPaPEy48HoJwLTBJLf7VAlS1hlJh54QrYLBYB\r
+       FYkvm/ewgdhsAhoS2/YvZwSxRQS0JD7ffM8EYjMLSEt8+90MZgsLyErMWNvCAmLzCmhL3H+w\r
+       HGyOkECAxJy336DighInZz5hgejVkrjx7yVQLwfYnOX/OEDCnAKBEl0vHoCtEgU6YcrJbWwT\r
+       GIVmIemehaR7FkL3AkbmVYyyKblVurmJmTnFqcm6xcmJeXmpRbqmermZJXqpKaWbGMFh7aK0\r
+       g/HnQaVDjAIcjEo8vDdEDgUIsSaWFVfmHmKU5GBSEuX1vQkU4kvKT6nMSCzOiC8qzUktPsQo\r
+       wcGsJMK7ahtQjjclsbIqtSgfJiXNwaIkznst5aa/kEB6YklqdmpqQWoRTFaGg0NJgvfrbaBG\r
+       waLU9NSKtMycEoQ0EwcnyHAeoOGRIDW8xQWJucWZ6RD5U4yKUuK8EiAJAZBERmkeXC8s7bxi\r
+       FAd6RZhXAaSKB5iy4LpfAQ1mAhocxb4fZHBJIkJKqoFxiX/xS9WjHR0z532aeXKK3SvR2fNz\r
+       MqR/9prLH9Nn+6w18cKOnyd4Nki4WwZoLzhz9WVUlZftolS5YouKb3NeNOy2Z/r9ZunxvRW7\r
+       VfKXBN2bGTxbcdVX06mTfvTVx7LPYbyyQmb1y6oPV7nu8G/UFgoTZZRt69s8f8fhfwt2sney\r
+       Bl7eVLZJX4mlOCPRUIu5qDgRABeLDlkWAwAA\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 08 Dec 2012 06:24:22 -0000\r
+\r
+Quoth Jason A. Donenfeld on Dec 08 at  4:44 am:\r
+> Do we support them? Are we going to?\r
+> \r
+> This doesn't work:\r
+> notmuch search -tag:"This has spaces"\r
+> \r
+> Nor does:\r
+> notmuch search "-tag:This has spaces"\r
+\r
+Tags with spaces are supported, but your shell will strip away the\r
+quotes you've used in both examples before notmuch ever sees them.\r
+You'll need both shell quoting and Xapian quoting in this case.  Try\r
+  notmuch search -- '-tag:"This has spaces"'\r
+This should be easier from a front-end, since it will take care of any\r
+necessary shell quoting.\r