The folder search implementation in the custom query parser is always rooted (both because that happened to be much easier to do in that design, and because I agree with you that rooted searches seem preferable most of the time).  What arguments do people have for or against rooted folder searches?

On a similar note, another difference is that cworth's folder search is recursive (which, I suppose, follows from being non-rooted).  That is, a search for "folder:foo" will find any message in any folder under foo.  The folder search I posted is non-recursive.  Thus, "folder:foo" specifically searches the foo maildir (that is, any mail under foo, foo/new, or foo/cur).  I consider different folders to be, well, different, regardless of nesting, but what are other people's thoughts?

On Tue, Jan 18, 2011 at 2:54 PM, Rob Browning <rlb@defaultvalue.org> wrote:
I'd be tempted to consider making folder: searches rooted by default.  I
wonder how often people really want "all folders named misc"?