--- /dev/null
+Return-Path: <jani@nikula.org>\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 1FD96431FBF\r
+ for <notmuch@notmuchmail.org>; Wed, 29 Jan 2014 22:34:53 -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 a2tvyL4Vpd3F for <notmuch@notmuchmail.org>;\r
+ Wed, 29 Jan 2014 22:34:39 -0800 (PST)\r
+Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com\r
+ [209.85.216.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 722A4431FBD\r
+ for <notmuch@notmuchmail.org>; Wed, 29 Jan 2014 22:34:37 -0800 (PST)\r
+Received: by mail-qa0-f41.google.com with SMTP id w8so3871304qac.14\r
+ for <notmuch@notmuchmail.org>; Wed, 29 Jan 2014 22:34:35 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version:content-type;\r
+ bh=mKLDJf5am2UQIN8GPyuRTMU3a5M7g3shughbnNDJ0dc=;\r
+ b=Zpc3pYAUu5f21zEGMOph7mqd+/HyQr6359ry66e0rjoqSbGD38OtfUBCWv8JoU7YXP\r
+ qCpcNHlv/zMYBAhOBKimG8ieN3Ri7Rutj3mrPTx1Z0k0TJgETXvRFfjZLSYQqtR+T0lJ\r
+ 01ptuIZWbmQhwHivcFy03Tp48txwAunX/8fYtgZTAV4N0BOfggDrLWi9E6deUYUqQIwd\r
+ RW6rYrICMhExlZY8ux3lH/9HtB/qns4+fCGdOotYea8rzgyXFeHaYOKk5phMQ/gn1mjv\r
+ zquS3+ww8MWzwX29032yhYLt5CmMz+MnJlDkM9nvNpyyYNn1HLURhsqvc1DoxU47q1t/\r
+ bb7A==\r
+X-Gm-Message-State:\r
+ ALoCoQlAPnLUG4AsJgLdI4lOlw/6hpJoyTLrgRSxFqufPeVaEiMZoxVs+DJoVXf3vRCRErxO02gj\r
+X-Received: by 10.229.71.69 with SMTP id g5mr19064127qcj.6.1391063674892;\r
+ Wed, 29 Jan 2014 22:34:34 -0800 (PST)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+ by mx.google.com with ESMTPSA id g6sm14269106qag.17.2014.01.29.22.34.33\r
+ for <multiple recipients>\r
+ (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
+ Wed, 29 Jan 2014 22:34:34 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Carl Worth <cworth@cworth.org>, Austin Clements <aclements@csail.mit.edu>\r
+Subject: Re: [PATCH 0/5] lib: make folder: prefix literal\r
+In-Reply-To: <87bnyuqw60.fsf@yoom.home.cworth.org>\r
+References: <cover.1389304779.git.jani@nikula.org>\r
+ <87y525m649.fsf@awakening.csail.mit.edu>\r
+ <87r47wfltb.fsf@nikula.org> <87iot8f4vg.fsf@nikula.org>\r
+ <874n4rvcvo.fsf@yoom.home.cworth.org> <874n4mfw1x.fsf@nikula.org>\r
+ <87k3dir3ci.fsf@yoom.home.cworth.org>\r
+ <20140129204608.GE4375@mit.edu>\r
+ <87bnyuqw60.fsf@yoom.home.cworth.org>\r
+User-Agent: Notmuch/0.17~rc2+18~gab1d8e8 (http://notmuchmail.org) Emacs/23.2.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 30 Jan 2014 07:34:24 +0100\r
+Message-ID: <87a9eeou4v.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Thu, 30 Jan 2014 06:34:55 -0000\r
+\r
+On Wed, 29 Jan 2014, Carl Worth <cworth@cworth.org> wrote:\r
+> Austin Clements <aclements@csail.mit.edu> writes:\r
+>> I think you're assuming we have much more control over this than we\r
+>> do.\r
+>\r
+> To be fair, I only started discussing my proposal for '^' and '$' in\r
+> response to Jani's proposal with special semantics for trailing '/' and\r
+> "/.".\r
+\r
+I only chose those to avoid any collisions with actual file names,\r
+without much further thought. I'm not a fan of rsync's trailing '/'\r
+semantics either. The main point was to demonstrate that if folder: were\r
+a boolean prefix, it would be possible to index folder terms in a way\r
+that would address the issues with the current folder: prefix.\r
+\r
+I don't have good counter-proposals now, but an *example* is having\r
+"sub-prefixes" like "folder:recursive::foo" or "folder:maildir::bar",\r
+where the former would match anything under foo and the latter would\r
+match anything in bar/new and bar/cur. These "recursive::" and\r
+"maildir::" prefixes would be just part of the indexed boolean terms.\r
+\r
+> Support for any of this magic syntax would require a custom query\r
+> parser, yes.\r
+>\r
+> Austin, haven't you been proposing a custom query parser for ages? Where\r
+> does that work stand now?\r
+\r
+That is the unicorn... many of the query improvements I have in mind\r
+depend on a custom query parser. So I'd like to have that. And a\r
+pony. But in the mean time, I'm left wondering whether I should pursue\r
+folder: as a boolean prefix, or try to figure out if there are\r
+improvements to be made as a probabilistic prefix, or just put this work\r
+on hold. With the db upgrade and upgrade tests, it's not exactly a\r
+trivial amount of work.\r
+\r
+BR,\r
+Jani.\r