1 Return-Path: <nclapham@gmail.com>
\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 A8053431FD6
\r
6 for <notmuch@notmuchmail.org>; Tue, 11 Jun 2013 14:34:41 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,
\r
13 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id Zxp8VWcuZRGH for <notmuch@notmuchmail.org>;
\r
17 Tue, 11 Jun 2013 14:34:34 -0700 (PDT)
\r
18 Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com
\r
19 [209.85.160.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 10B8C431FC7
\r
22 for <notmuch@notmuchmail.org>; Tue, 11 Jun 2013 14:34:33 -0700 (PDT)
\r
23 Received: by mail-pb0-f49.google.com with SMTP id jt11so8851033pbb.8
\r
24 for <notmuch@notmuchmail.org>; Tue, 11 Jun 2013 14:34:33 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=sender:date:from:to:subject:message-id:mime-version:content-type
\r
27 :content-disposition:user-agent;
\r
28 bh=Or23COc4aSdxC5DiNBCxJ610sOkEOUF3JvVRFnrKWZU=;
\r
29 b=LkypH50O9/vavtTkD2dIWVefKZMpCDyTeRupB88sPs3qd8KX7fxJKJdP7MTC1vv6It
\r
30 Y5K7A8bZKTxBhSUuOBYQO+ohcPk9x6lmWQUD/KL/uzikc/Aaa724NPyC9Fr6PvlwUk/3
\r
31 KPxK5c0+kSwcMOTmK3DXqhoosLr3sLcgNwAs3KA4CYSKURixmUSDf2e58a20bL4Allse
\r
32 W7TFyaWOFD2znS1SQrvFH41okQPuK9ccvqh2WMwZlSFOL3s/XBwZEoTF0kI1DfObzXUP
\r
33 bA2RbjqH704zyIYPqYRG2anT3LjK0vylJwCA3osXSBOUmlGMZRAxon4OZpyLfcjEiJvt
\r
35 X-Received: by 10.66.27.196 with SMTP id v4mr20618320pag.97.1370986472183;
\r
36 Tue, 11 Jun 2013 14:34:32 -0700 (PDT)
\r
37 Received: from Nathans-MacBook-Air.local (220-244-175-164.static.tpgi.com.au.
\r
38 [220.244.175.164]) by mx.google.com with ESMTPSA id
\r
39 vb8sm16175328pbc.11.2013.06.11.14.34.28 for <notmuch@notmuchmail.org>
\r
40 (version=TLSv1 cipher=RC4-SHA bits=128/128);
\r
41 Tue, 11 Jun 2013 14:34:30 -0700 (PDT)
\r
42 Sender: Nathan Clapham <nclapham@gmail.com>
\r
43 Received: by Nathans-MacBook-Air.local (Postfix, from userid 501)
\r
44 id 54BD27CED96; Wed, 12 Jun 2013 07:34:24 +1000 (EST)
\r
45 Date: Wed, 12 Jun 2013 07:34:24 +1000
\r
46 From: Nathan Clapham <nathan@claphams.info>
\r
47 To: notmuch@notmuchmail.org
\r
48 Subject: Searching with prefix :folder and --output=files
\r
49 Message-ID: <20130611213424.GA5028@Nathans-MacBook-Air.local>
\r
51 Content-Type: text/plain; charset=us-ascii; format=flowed
\r
52 Content-Disposition: inline
\r
53 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
54 X-Mailman-Approved-At: Tue, 11 Jun 2013 23:57:18 -0700
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Tue, 11 Jun 2013 21:34:41 -0000
\r
71 Thanks for notmuch mail, it is a great program!
\r
73 I am having an issue searching with --output=files and the folder prefix.
\r
75 Could you please tell me if I've misunderstood something or perhaps there is
\r
76 something wrong with my setup. Details of 2 examples below:
\r
84 Archive message #: 1356
\r
85 Directory: $HOME/Mail/Gmail/[Gmail].Archive
\r
87 $ notmuch count folder:Archive
\r
90 $ notmuch search --output=messages folder:Archive | wc -l
\r
93 $ notmuch search --output=files folder:Archive | wc -l
\r
96 I wondered why I was getting more files listed in the last example. It turns out
\r
97 some files are included from other folders. For example:
\r
99 Mail/Gmail/[Gmail].Sent Mail/cur/137075610...28e65ad90fc4f:2,S
\r
103 $ notmuch search --output=files folder:Archive | grep Archive | wc -l
\r
106 I get the correct count again.
\r
108 Different folders have a similar issue:
\r
112 INBOX message #: 87
\r
113 Directory: $HOME/Mail/Gmail/INBOX
\r
115 $ notmuch count folder:INBOX
\r
118 $ notmuch search --output=messages folder:INBOX | wc -l
\r
121 $ notmuch search --output=files folder:INBOX | wc -l
\r
124 This time some messages from Archive are included:
\r
126 Mail/Gmail/[Gmail].Archive/cur/137077654...d7c877e152f72dd5ddbc11f:2,S
\r
128 $ notmuch search --output=files folder:INBOX | grep INBOX | wc -l
\r
132 I think this illustrates the problem I'm having. Maybe I don't understand how
\r
133 the folder: prefix works? Perhaps it is my folder structure - the inclusion of
\r
134 the imap prefix [Gmail].?? It seems the search is matching the correct messages
\r
135 though, but the output of files includes messages from another folder.
\r
137 Any advice would be appreciated.
\r