--- /dev/null
+Return-Path: <mail1@2b1.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 1EAB6431FAF\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Jul 2013 04:55:25 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.313\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.313 tagged_above=-999 required=5\r
+ tests=[URI_HEX=1.313] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id qYQRb92W2vK8 for <notmuch@notmuchmail.org>;\r
+ Wed, 10 Jul 2013 04:55:15 -0700 (PDT)\r
+Received: from sam.nabble.com (sam.nabble.com [216.139.236.26])\r
+ (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 7C010431FAE\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Jul 2013 04:55:15 -0700 (PDT)\r
+Received: from ben.nabble.com ([192.168.236.152])\r
+ by sam.nabble.com with esmtp (Exim 4.72)\r
+ (envelope-from <mail1@2b1.de>) id 1UwszJ-0004lu-SO\r
+ for notmuch@notmuchmail.org; Wed, 10 Jul 2013 04:55:13 -0700\r
+Date: Wed, 10 Jul 2013 04:55:13 -0700 (PDT)\r
+From: ingo <mail1@2b1.de>\r
+To: notmuch@notmuchmail.org\r
+Message-ID: <1373457313852-4028436.post@n3.nabble.com>\r
+In-Reply-To: <87mwpvd1fp.fsf@qmul.ac.uk>\r
+References: <51DC0A16.5080704@2b1.de> <87mwpvd1fp.fsf@qmul.ac.uk>\r
+Subject: Re: notmuch search --output=files error with AND NOT search terms\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Transfer-Encoding: 7bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 10 Jul 2013 11:55:25 -0000\r
+\r
+Mark Walters wrote\r
+> Hi\r
+> \r
+>> Hi list,\r
+>>\r
+>> I am trying to check for mails, that are tagged differently from their \r
+>> mailfolder.\r
+>>\r
+>> So I am searching like this, for example:\r
+>>\r
+>> notmuch search folder:1_Personal AND NOT tag:1_Personal\r
+>> thread:0000000000005613 2008-01-15 [1/1] KIKIDAN News; kikidan \r
+>> news 2008/01: Willkommen im neuen Jahr (inbox to-me)\r
+>>\r
+>> That's OK, but if I want to get the file name of the message, suddenly \r
+>> get another message, which isn't located in the 1_Personal folder at all.\r
+>>\r
+>> notmuch search --output=files folder:1_Personal AND NOT \r
+>> tag:1_Personal\r
+>> /home/ianus/Mail/ingo-2b1-de/INBOX/cur/1362131239_2.9026.cordraconis,U=33535,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S\r
+>> /home/ianus/Mail/ingo-2b1-de/1_Personal/cur/1361052415_0.30588.cordraconis,U=755,FMD5=2bd412d62930ab474a218128a61bdb68:2,S\r
+>>\r
+> \r
+> The most likely cause is that these two messagefiles have the same\r
+> message-ids (so in notmuch's view are the same message). Try\r
+> \r
+> notmuch search --output=messages folder:1_Personal AND NOT tag:1_Personal\r
+> \r
+> If you only see one message-id then notmuch thinks there is a single\r
+> message\r
+> that matches the search. The way notmuch works is that it first finds\r
+> which messages match and then prints the requested information for those\r
+> messages. So in this case it finds the matching message(s) then prints\r
+> all filenames for those matching messages.\r
+\r
+Hi Mark,\r
+\r
+thank you for your answer, actually I only get one single message id, the\r
+one I get without using --output=files.\r
+\r
+notmuch search --output=messages folder:1_Personal AND NOT tag:1_Personal \r
+id:f76b9be792c46795945e1486ccb2b2ab@www.kikidan.com\r
+\r
+How about the nextmost likely cause :-)\r
+\r
+\r
+Kind regards,\r
+\r
+Ingo\r
+\r
+\r
+\r
+\r
+\r
+--\r
+View this message in context: http://notmuch.198994.n3.nabble.com/notmuch-search-output-files-error-with-AND-NOT-search-terms-tp4028432p4028436.html\r
+Sent from the notmuch mailing list archive at Nabble.com.\r