--- /dev/null
+Return-Path: <keith@awakenetworks.com>\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 6DE09431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 20 Sep 2014 14:52:35 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.8\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ 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 Ex6fZ0Qfir51 for <notmuch@notmuchmail.org>;\r
+ Sat, 20 Sep 2014 14:52:28 -0700 (PDT)\r
+X-Greylist: delayed 481 seconds by postgrey-1.32 at olra;\r
+ Sat, 20 Sep 2014 14:52:28 PDT\r
+Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com\r
+ [66.111.4.221])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 299D1431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 20 Sep 2014 14:52:28 -0700 (PDT)\r
+Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])\r
+ by gateway2.nyi.internal (Postfix) with ESMTP id 4D5A1DAB\r
+ for <notmuch@notmuchmail.org>; Sat, 20 Sep 2014 17:44:25 -0400 (EDT)\r
+Received: from frontend2 ([10.202.2.161])\r
+ by compute4.internal (MEProxy); Sat, 20 Sep 2014 17:44:25 -0400\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=awakenetworks.com;\r
+ h=from:to:subject:date:message-id:mime-version:content-type; s=\r
+ mesmtp; bh=0Gz/oUyvpAQMhqVufnI2DgXEG/k=; b=sJwgsGxJllt60L2sZDfYZ\r
+ xHBwR705nrJFjD15jo2S4lIEu8OXkCzHzw0O/Urc1jvLMPlVOCvGF+eK97gnwkYv\r
+ 9zoc5LyJtpMsr94KJnq1/+iG2PZuw9zVsQAALGnpSl/UxMLrdA4D83bPAHu+pYOX\r
+ K0lhNrS5L9E+RThHc+bX60=\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=\r
+ messagingengine.com; h=from:to:subject:date:message-id\r
+ :mime-version:content-type; s=smtpout; bh=0Gz/oUyvpAQMhqVufnI2Dg\r
+ XEG/k=; b=fB0c6kIcV69zsYVaJQrPyONTLMJvs/G0l9MYjbPp51x4wREL4bfoel\r
+ V8c+0LrTHEOuP9taEVK9deDmnb6qRkStBpK1+gmkAIPAH71Gq2pg7rWcwShp04UF\r
+ j4E3bAOf+B11sL/ofOvwOcRJnEWDpyElictBSofBRAPPWotdISuDA=\r
+X-Sasl-enc: NZiBKaYdtFABYzjdTfBBFyWzleHA9DOdjnozBoggTk9h 1411249464\r
+Received: from kea-tablet.awakenetworks.com (unknown [108.225.17.54])\r
+ by mail.messagingengine.com (Postfix) with ESMTPA id AB880680278\r
+ for <notmuch@notmuchmail.org>; Sat, 20 Sep 2014 17:44:24 -0400 (EDT)\r
+From: Keith Amidon <keith@awakenetworks.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Do path: searches handle spaces correctly?\r
+User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Sat, 20 Sep 2014 14:44:22 -0700\r
+Message-ID: <878uleklvt.fsf@awakenetworks.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-Mailman-Approved-At: Mon, 22 Sep 2014 01:48:23 -0700\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, 20 Sep 2014 21:52:35 -0000\r
+\r
+I'm trying to update an archiving tool that used the old folder: search\r
+terms to use the newer folder: or path: terms. From playing around with\r
+it, I think that the path: term is what I want to use. However, I am\r
+getting some behavior I don't understand unless path: searches don't\r
+properly handle spaces or I don't know how to quote them properly.\r
+\r
+If I do:\r
+\r
+notmuch search --output=files path:'dir/INBOX/**'\r
+\r
+I get:\r
+\r
+<base>/dir/INBOX/cur/1411244319_3.18990.kea-tablet,U=24,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+<base>/dir/INBOX/cur/1411244319_2.18990.kea-tablet,U=23,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+<base>/dir/INBOX/INBOX/Sent Items/cur/1411244324_2.18990.kea-tablet,U=3,FMD5=e99e6ef6cc1489bb6d8b47a4c49bb989:2,S\r
+<base>/dir/INBOX/cur/1411244319_1.18990.kea-tablet,U=22,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,RS\r
+<base>/dir/INBOX/cur/1411244319_0.18990.kea-tablet,U=21,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+<base>/dir/INBOX/cur/1411244318_3.18990.kea-tablet,U=20,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+<base>/dir/INBOX/cur/1411244318_2.18990.kea-tablet,U=19,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+<base>/dir/INBOX/cur/1411244318_1.18990.kea-tablet,U=18,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+<base>/dir/INBOX/INBOX/Sent Items/cur/1411244324_1.18990.kea-tablet,U=2,FMD5=e99e6ef6cc1489bb6d8b47a4c49bb989:2,S\r
+<base>/dir/INBOX/cur/1411244318_0.18990.kea-tablet,U=17,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+\r
+Notice that this contains results for "dir/INBOX/INBOX/Sent Items",\r
+which has a space in it. If I do:\r
+\r
+notmuch search --output=files path:'dir/INBOX/INBOX/Sent Items'\r
+\r
+I don't get any results, but it seems like the two results above should\r
+be shown, right? Am I doing something wrong here? If it looks like I'm\r
+doing it correctly, what can I do to help troubleshoot the issue?\r
+\r
+ Thanks, Keith\r