[PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 50 / e9043564777f9bf52ceb2f7557a19fcd6e7ed6
1 Return-Path: <m.walters@qmul.ac.uk>\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 6401E431FB6\r
6         for <notmuch@notmuchmail.org>; Tue,  9 Jul 2013 11:38:02 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 MUh9D5mRF4ft for <notmuch@notmuchmail.org>;\r
17         Tue,  9 Jul 2013 11:37:55 -0700 (PDT)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 1865B431FAE\r
22         for <notmuch@notmuchmail.org>; Tue,  9 Jul 2013 11:37:55 -0700 (PDT)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1UwcnM-0002Kn-Dw; Tue, 09 Jul 2013 19:37:51 +0100\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1UwcnM-0004cR-5l; Tue, 09 Jul 2013 19:37:48 +0100\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: Ingo Hohmann <mail1@2b1.de>, notmuch@notmuchmail.org\r
33 Subject: Re: notmuch search --output=files    error with AND NOT search terms\r
34 In-Reply-To: <51DC0A16.5080704@2b1.de>\r
35 References: <51DC0A16.5080704@2b1.de>\r
36 User-Agent: Notmuch/0.15.2+192~g8222af3 (http://notmuchmail.org) Emacs/23.4.1\r
37         (i486-pc-linux-gnu)\r
38 Date: Tue, 09 Jul 2013 19:37:46 +0100\r
39 Message-ID: <87mwpvd1fp.fsf@qmul.ac.uk>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain; charset=us-ascii\r
42 X-Sender-Host-Address: 93.97.24.31\r
43 X-QM-SPAM-Info: Sender has good ham record.  :)\r
44 X-QM-Body-MD5: 1d3f1ed18b338575d78a58cfd1301790 (of first 20000 bytes)\r
45 X-SpamAssassin-Score: 0.0\r
46 X-SpamAssassin-SpamBar: /\r
47 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
48         determine if it is\r
49         spam. We require at least 5.0 points to mark a message as spam.\r
50         This message scored 0.0 points. Summary of the scoring: \r
51         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
52         provider *      (markwalters1009[at]gmail.com)\r
53         *  0.0 AWL AWL: From: address is in the auto white-list\r
54 X-QM-Scan-Virus: ClamAV says the message is clean\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\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, 09 Jul 2013 18:38:02 -0000\r
68 \r
69 \r
70 Hi\r
71 \r
72 > Hi list,\r
73 >\r
74 > I am trying to check for mails, that are tagged differently from their \r
75 > mailfolder.\r
76 >\r
77 > So I am searching like this, for example:\r
78 >\r
79 >      notmuch search   folder:1_Personal AND NOT tag:1_Personal\r
80 >      thread:0000000000005613   2008-01-15 [1/1] KIKIDAN News; kikidan \r
81 > news 2008/01: Willkommen im neuen Jahr (inbox to-me)\r
82 >\r
83 > That's OK, but if I want to get the file name of the message, suddenly \r
84 > get another message, which isn't located in the 1_Personal folder at all.\r
85 >\r
86 >      notmuch search --output=files   folder:1_Personal AND NOT \r
87 > tag:1_Personal\r
88 > /home/ianus/Mail/ingo-2b1-de/INBOX/cur/1362131239_2.9026.cordraconis,U=33535,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
89 > /home/ianus/Mail/ingo-2b1-de/1_Personal/cur/1361052415_0.30588.cordraconis,U=755,FMD5=2bd412d62930ab474a218128a61bdb68:2,S\r
90 >\r
91 \r
92 The most likely cause is that these two messagefiles have the same\r
93 message-ids (so in notmuch's view are the same message). Try\r
94 \r
95 notmuch search --output=messages  folder:1_Personal AND NOT tag:1_Personal\r
96 \r
97 If you only see one message-id then notmuch thinks there is a single message\r
98 that matches the search. The way notmuch works is that it first finds\r
99 which messages match and then prints the requested information for those\r
100 messages. So in this case it finds the matching message(s) then prints\r
101 all filenames for those matching messages.\r
102 \r
103 There are some patches floating around for improvements to the manpage\r
104 but they haven't been applied/reviewed yet.\r
105 \r
106 Best wishes\r
107 \r
108 Mark\r
109 \r
110 \r
111 >\r
112 > Kind regards,\r
113 >\r
114 > Ingo\r
115 >\r
116 >\r
117 > _______________________________________________\r
118 > notmuch mailing list\r
119 > notmuch@notmuchmail.org\r
120 > http://notmuchmail.org/mailman/listinfo/notmuch\r