--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 4EAC1431E82\r
+ for <notmuch@notmuchmail.org>; Sat, 3 May 2014 00:29:52 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ 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 2hFz3ItBT73U for <notmuch@notmuchmail.org>;\r
+ Sat, 3 May 2014 00:29:43 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id A579A431E62\r
+ for <notmuch@notmuchmail.org>; Sat, 3 May 2014 00:29:42 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 4F4C6100064;\r
+ Sat, 3 May 2014 10:29:35 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Mazieres expires 2014-07-31 PDT\r
+ <mazieres-dznikihr9t4gcgb72gnhf9954a@temporary-address.scs.stanford.edu>,\r
+ Jani Nikula <jani@nikula.org>\r
+Subject: Re: folder and path completely broken in HEAD?\r
+In-Reply-To: <87oazfo3w2.fsf@ta.scs.stanford.edu>\r
+References: <87oazfo3w2.fsf@ta.scs.stanford.edu>\r
+User-Agent: Notmuch/0.18~rc0+7~g371733d (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Sat, 03 May 2014 10:29:34 +0300\r
+Message-ID: <m2k3a32uch.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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, 03 May 2014 07:29:52 -0000\r
+\r
+On Sat, May 03 2014, dm-list-email-notmuch@scs.stanford.edu wrote:\r
+\r
+> Jani Nikula <jani@nikula.org> writes:\r
+>\r
+>> On Fri, 02 May 2014, dm-list-email-notmuch@scs.stanford.edu wrote:\r
+>>>\r
+>>> I'm using a pretty standard maildir++ layout. For example, underneath\r
+>>> my database.path I have a bunch of mail in directories such as:\r
+>>>\r
+>>> .INBOX.Main/{new,cur}\r
+>>> .mail.class/{new,cur}\r
+>>> .mail.voicemail/{new,cur}\r
+>>> ...\r
+>> Here's additional commentary on the specific queries.\r
+>>\r
+>>> linux7$ ./notmuch count folder:mail\r
+>>> 0\r
+>>> linux8$ ./notmuch count folder:.mail\r
+>>> 0\r
+>\r
+> Oh, man. That's a serious bummer.\r
+>\r
+> Is there any mechanism left that would let me hierarchically group\r
+> messages? I've got a ton of mail.* folders, and create new ones\r
+> dynamically. I really want a mechanism to group them hierarchically, so\r
+> I can have a search that matches all current and future mail\r
+> directories. I organized my whole mail setup around folders because a)\r
+> tags do not provide this kind of hierarchical control, and b) there\r
+> doesn't seem to be a convenient way to apply tags 100% reliably on\r
+> message delivery, whereas I *can* control the folder 100% reliably.\r
+>\r
+> Worse, because of my poor performance, I was hoping to segregate\r
+> messages by year. So it would be:\r
+>\r
+> 2013/.mail.class\r
+> 2013/.mail.voicemail\r
+> 2014/.mail.class\r
+> 2014/.mail.voicemail\r
+>\r
+> All the way back. Now you are saying there will be no convenient way to\r
+> match just the "mail.class" part without the year? How very\r
+> distressing. Ugh.\r
+\r
+I use git-style segregation where mails are scattered into 256\r
+subdirectories under a directory (based on md5hash of the mail file\r
+contents). By default mails go under received/??/. results:\r
+\r
+$ notmuch count folder:received\r
+3\r
+(I seem to have 3 test emails under the root of ~/.mail/received)\r
+\r
+$ notmuch count folder:received/**\r
+0\r
+(Apparently unsupported search ;D -- I have setopt no_nomatch in my\r
+zsh so it doesn't barf when 'folder:received/**' doesn't match anything\r
+and that saves me quoting effort :D)\r
+\r
+$ notmuch count path:received/\r
+0\r
+$ notmuch count path:received\r
+3\r
+(again)\r
+\r
+$ notmuch count path:received/**\r
+19439\r
+\r
+That's probably right. Inconvenient syntax though (No, I am not complaining)\r
+\r
+>\r
+> David\r
+\r
+Tomi\r
+\r
+Lets briefly verify this...\r
+\r
+\r
+$ find ~/mail/received -type f | wc\r
+ 21151 21151 1353561\r
+\r
+Hmm\r
+\r
+$ ~/vc/projects/toomuch/check-mid-duplicates.pl mail/received | wc\r
+mail/received/00/9feb4f33523a003768a22b2f9df8f9: no Message-ID\r
+mail/received/10/10ab4e570fdd8bf744dad93d2f1c7a: no Message-ID\r
+mail/received/32/60aef86b3bf8837c1c6a8a20d5d519: no Message-ID\r
+mail/received/zap: 'from' or 'date' header missing, not a mail file ?\r
+mail/received/e1/f1be5aa84c8b28d1056aa9a8bc5b4f: no Message-ID\r
+mail/received/19/4c0e3e812721da11ad71dfe26f5b05: no Message-ID\r
+mail/received/41/d7083964e92c70ed57a3c8afd4d1d6: no Message-ID\r
+mail/received/96/22de40b7c48d3ff32101777eade693: no Message-ID\r
+mail/received/e7/8f5b883692e79627d53cf607228b02: no Message-ID\r
+mail/received/d1/248c296b7ce635848c442b4c06a9f2: no Message-ID\r
+ 1711 17110 331583\r
+\r
+Uh huh, have to check what is going on there....\r
+\r
+\r
+\r