--- /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 0B634431FAF\r
+ for <notmuch@notmuchmail.org>; Tue, 9 Jul 2013 06:03:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 e9UIgMeYbdD0 for <notmuch@notmuchmail.org>;\r
+ Tue, 9 Jul 2013 06:03:22 -0700 (PDT)\r
+Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9])\r
+ (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 4DEC5431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 9 Jul 2013 06:03:22 -0700 (PDT)\r
+Received: from [192.168.178.135] (x2f161c7.dyn.telefonica.de [2.241.97.199])\r
+ by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis)\r
+ id 0MaoHu-1UdLlK1tAA-00Kimm; Tue, 09 Jul 2013 15:03:20 +0200\r
+Message-ID: <51DC0A16.5080704@2b1.de>\r
+Date: Tue, 09 Jul 2013 15:03:18 +0200\r
+From: Ingo Hohmann <mail1@2b1.de>\r
+User-Agent: Mozilla/5.0 (X11; Linux i686;\r
+ rv:17.0) Gecko/20130623 Thunderbird/17.0.7\r
+MIME-Version: 1.0\r
+To: notmuch@notmuchmail.org\r
+Subject: notmuch search --output=files error with AND NOT search terms\r
+Content-Type: text/plain; charset=ISO-8859-1; format=flowed\r
+Content-Transfer-Encoding: 7bit\r
+X-Provags-ID: V02:K0:Kc9Ne/3kDQEc3+Q3OVv1sfzDfw9oVySYrmkI3xKlP+H\r
+ p8mb+uEX4Z0/W9yvxC4burQP5+zOCXBl62ZDt91ge5JYBmhiPh\r
+ rhVj7NbY37ttJCYo4YX2GSL8avfv4D6S61XSPjkGP+lG+qqoz9\r
+ p3ZLVpqHWlQKSuUtP870CFIX9yYUY8rA8+FbsMN9QV+AFcMQIR\r
+ ZhEmH2mdwKLEg3Kgito3GrtLyh7Hm1AWDv6dGLAbbAAG3GDXS6\r
+ hRyFKY0VyMtUI4KDtEA/bLdxGeOVds0B/P4j8GvffXdDI5xhZS\r
+ gP+7vbN1r2xPiK6VF2a5rWHSh8VRymBmcnLUsQyPBxhGxxDTcP\r
+ z4h5ZT8RLxcsxtpaPA3s=\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: Tue, 09 Jul 2013 13:03:30 -0000\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
+Kind regards,\r
+\r
+Ingo\r
+\r
+\r