1 Return-Path: <jani@nikula.org>
\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 4D9B3429E2F
\r
6 for <notmuch@notmuchmail.org>; Fri, 2 May 2014 14:29:38 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\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 JFhWVV8q0UGU for <notmuch@notmuchmail.org>;
\r
16 Fri, 2 May 2014 14:29:30 -0700 (PDT)
\r
17 Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com
\r
18 [74.125.83.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 A02F4431FC2 for <notmuch@notmuchmail.org>; Fri, 2 May 2014 14:29:30 -0700
\r
22 Received: by mail-ee0-f44.google.com with SMTP id c41so3431145eek.17
\r
23 for <notmuch@notmuchmail.org>; Fri, 02 May 2014 14:29:29 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:from:to:subject:in-reply-to:references
\r
27 :user-agent:date:message-id:mime-version:content-type;
\r
28 bh=TaVV0J3I0s0nlIKYz9XlM9kH56SFcPV/Q8eYZBARKP0=;
\r
29 b=l/jN6t0P+hZezw8jngyv6uqaPSspSe/D2rVG1M7fS6tlfd7DAr3rpBrQ7sCXOAKxcc
\r
30 M20MOVa+TuuAr+FtdpQWZdNetasAXxzUk6OPOS+0k7vwd9/M7ro1EIeH0tHg+ltLUdxU
\r
31 7B2aokdzi075fOZu/TMkrUhLA1RF5q1lRmLON+aMAfuhODDvwCVOLjkgjFyMBaDDu2dO
\r
32 Zo7JvG5wpxeUKqmI1MT6ZcpfiGl7Ajc+xTlq/qsVjFdUblnaVotzkafp1DTa5COg4B//
\r
33 J0Ky6elDyCdkkGtipykxMFdXk4FkCb1LU2iI6kxGVuQoqPGkUURoUNcOTlqEeLmY6UoA
\r
36 ALoCoQnwQ8QvDdlLHFTSLnthsRI0+majfV6kdWnSKSwnga6rn6lEypnCVEOBRzcY+4VysBZU847t
\r
37 X-Received: by 10.14.241.137 with SMTP id g9mr3437207eer.69.1399066169272;
\r
38 Fri, 02 May 2014 14:29:29 -0700 (PDT)
\r
39 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.
\r
41 by mx.google.com with ESMTPSA id y51sm7577387eeu.0.2014.05.02.14.29.27
\r
42 for <multiple recipients>
\r
43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
44 Fri, 02 May 2014 14:29:28 -0700 (PDT)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: David Mazieres expires 2014-07-31 PDT
\r
47 <mazieres-zk7gikin52b3hgy9ybcegjvvmi@temporary-address.scs.stanford.edu>,
\r
48 notmuch@notmuchmail.org
\r
49 Subject: Re: folder and path completely broken in HEAD?
\r
50 In-Reply-To: <87tx98xel7.fsf@ta.scs.stanford.edu>
\r
51 References: <87tx98xel7.fsf@ta.scs.stanford.edu>
\r
52 User-Agent: Notmuch/0.18~rc0+2~gbc64cdc (http://notmuchmail.org) Emacs/24.3.1
\r
53 (x86_64-pc-linux-gnu)
\r
54 Date: Sat, 03 May 2014 00:29:27 +0300
\r
55 Message-ID: <87zjizyimg.fsf@nikula.org>
\r
57 Content-Type: text/plain
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Fri, 02 May 2014 21:29:38 -0000
\r
72 On Fri, 02 May 2014, dm-list-email-notmuch@scs.stanford.edu wrote:
\r
73 > Hey, I'm playing around with the head of the git repository
\r
74 > (bc64cdce289d84be2550c4fccb1f008d15eaeb0e) to try to figure out how the
\r
75 > new folder: prefixes work, as folders are a critical part of how I
\r
76 > organize my mail. (Since tags are not hierarchical, folders are the
\r
77 > best way for me to group mail to a bunch of related addresses, while
\r
78 > retaining the ability to separate out any mailboxes that become high
\r
81 > I'm using a pretty standard maildir++ layout. For example, underneath
\r
82 > my database.path I have a bunch of mail in directories such as:
\r
84 > .INBOX.Main/{new,cur}
\r
85 > .mail.class/{new,cur}
\r
86 > .mail.voicemail/{new,cur}
\r
88 > It used to be the case that if I wanted to read all of my "mail" mail, I
\r
89 > could search for folder:mail, while to look at just voicemail, I could
\r
90 > say folder:mail.voicemail, etc. Now, I can't get anything to match a
\r
91 > folder predicate period. For example, using notmuch as notmuch-0.17 and
\r
92 > ./notmuch as notmuch-0.18-rc2+2~gbc64cdc, here's what I get:
\r
94 First, read Mark's reply about database upgrade, and heed the notice
\r
95 about upgrade being automatic but downgrade requiring a reindex of all
\r
98 Here's additional commentary on the specific queries.
\r
100 > linux7$ ./notmuch count folder:mail
\r
102 > linux8$ ./notmuch count folder:.mail
\r
105 These two will not match anything.
\r
107 > linux9$ ./notmuch count folder:.mail.voicemail
\r
110 After the upgrade, this should work for .mail.voicemail/{new,cur}.
\r
112 > linux10$ ./notmuch count folder:.mail.voicemail/cur
\r
115 This won't match anything. To specifically search for messages in cur,
\r
116 you can use the new path prefix, path:.mail.voicemail/cur
\r
118 > linux 11$ ./notmuch count path:.mail.voicemail
\r
121 This will match messages in .mail.voicemail only, and nothing in the cur
\r
122 or new subdirectories.
\r
124 > linux 12$ ./notmuch count path:.mail.voicemail/'**'
\r
127 I'm not sure your quoting will work, but if you don't have any other
\r
128 subfolders than cur and new, this should be equal to
\r
129 folder:.mail.voicemail
\r
131 > linux 13$ ./notmuch count path:.mail.voicemail/cur
\r
134 This should match messages in the cur subdirectory.
\r
136 > linux 14$ ./notmuch count folder:mail.voicemail
\r
139 This won't match anything.
\r