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