1 Return-Path: <tomi.ollila@iki.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 4EAC1431E82
\r
6 for <notmuch@notmuchmail.org>; Sat, 3 May 2014 00:29:52 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 2hFz3ItBT73U for <notmuch@notmuchmail.org>;
\r
16 Sat, 3 May 2014 00:29:43 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id A579A431E62
\r
19 for <notmuch@notmuchmail.org>; Sat, 3 May 2014 00:29:42 -0700 (PDT)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id 4F4C6100064;
\r
22 Sat, 3 May 2014 10:29:35 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: David Mazieres expires 2014-07-31 PDT
\r
25 <mazieres-dznikihr9t4gcgb72gnhf9954a@temporary-address.scs.stanford.edu>,
\r
26 Jani Nikula <jani@nikula.org>
\r
27 Subject: Re: folder and path completely broken in HEAD?
\r
28 In-Reply-To: <87oazfo3w2.fsf@ta.scs.stanford.edu>
\r
29 References: <87oazfo3w2.fsf@ta.scs.stanford.edu>
\r
30 User-Agent: Notmuch/0.18~rc0+7~g371733d (http://notmuchmail.org) Emacs/24.3.1
\r
31 (x86_64-unknown-linux-gnu)
\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
33 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
34 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
35 Date: Sat, 03 May 2014 10:29:34 +0300
\r
36 Message-ID: <m2k3a32uch.fsf@guru.guru-group.fi>
\r
38 Content-Type: text/plain
\r
39 Cc: notmuch@notmuchmail.org
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Sat, 03 May 2014 07:29:52 -0000
\r
54 On Sat, May 03 2014, dm-list-email-notmuch@scs.stanford.edu wrote:
\r
56 > Jani Nikula <jani@nikula.org> writes:
\r
58 >> On Fri, 02 May 2014, dm-list-email-notmuch@scs.stanford.edu wrote:
\r
60 >>> I'm using a pretty standard maildir++ layout. For example, underneath
\r
61 >>> my database.path I have a bunch of mail in directories such as:
\r
63 >>> .INBOX.Main/{new,cur}
\r
64 >>> .mail.class/{new,cur}
\r
65 >>> .mail.voicemail/{new,cur}
\r
67 >> Here's additional commentary on the specific queries.
\r
69 >>> linux7$ ./notmuch count folder:mail
\r
71 >>> linux8$ ./notmuch count folder:.mail
\r
74 > Oh, man. That's a serious bummer.
\r
76 > Is there any mechanism left that would let me hierarchically group
\r
77 > messages? I've got a ton of mail.* folders, and create new ones
\r
78 > dynamically. I really want a mechanism to group them hierarchically, so
\r
79 > I can have a search that matches all current and future mail
\r
80 > directories. I organized my whole mail setup around folders because a)
\r
81 > tags do not provide this kind of hierarchical control, and b) there
\r
82 > doesn't seem to be a convenient way to apply tags 100% reliably on
\r
83 > message delivery, whereas I *can* control the folder 100% reliably.
\r
85 > Worse, because of my poor performance, I was hoping to segregate
\r
86 > messages by year. So it would be:
\r
89 > 2013/.mail.voicemail
\r
91 > 2014/.mail.voicemail
\r
93 > All the way back. Now you are saying there will be no convenient way to
\r
94 > match just the "mail.class" part without the year? How very
\r
97 I use git-style segregation where mails are scattered into 256
\r
98 subdirectories under a directory (based on md5hash of the mail file
\r
99 contents). By default mails go under received/??/. results:
\r
101 $ notmuch count folder:received
\r
103 (I seem to have 3 test emails under the root of ~/.mail/received)
\r
105 $ notmuch count folder:received/**
\r
107 (Apparently unsupported search ;D -- I have setopt no_nomatch in my
\r
108 zsh so it doesn't barf when 'folder:received/**' doesn't match anything
\r
109 and that saves me quoting effort :D)
\r
111 $ notmuch count path:received/
\r
113 $ notmuch count path:received
\r
117 $ notmuch count path:received/**
\r
120 That's probably right. Inconvenient syntax though (No, I am not complaining)
\r
127 Lets briefly verify this...
\r
130 $ find ~/mail/received -type f | wc
\r
131 21151 21151 1353561
\r
135 $ ~/vc/projects/toomuch/check-mid-duplicates.pl mail/received | wc
\r
136 mail/received/00/9feb4f33523a003768a22b2f9df8f9: no Message-ID
\r
137 mail/received/10/10ab4e570fdd8bf744dad93d2f1c7a: no Message-ID
\r
138 mail/received/32/60aef86b3bf8837c1c6a8a20d5d519: no Message-ID
\r
139 mail/received/zap: 'from' or 'date' header missing, not a mail file ?
\r
140 mail/received/e1/f1be5aa84c8b28d1056aa9a8bc5b4f: no Message-ID
\r
141 mail/received/19/4c0e3e812721da11ad71dfe26f5b05: no Message-ID
\r
142 mail/received/41/d7083964e92c70ed57a3c8afd4d1d6: no Message-ID
\r
143 mail/received/96/22de40b7c48d3ff32101777eade693: no Message-ID
\r
144 mail/received/e7/8f5b883692e79627d53cf607228b02: no Message-ID
\r
145 mail/received/d1/248c296b7ce635848c442b4c06a9f2: no Message-ID
\r
148 Uh huh, have to check what is going on there....
\r