Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8D580431FAE for ; Thu, 11 Jul 2013 01:39:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.313 X-Spam-Level: * X-Spam-Status: No, score=1.313 tagged_above=-999 required=5 tests=[URI_HEX=1.313] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R-Ug2bLavtLz for ; Thu, 11 Jul 2013 01:39:22 -0700 (PDT) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 5CB4A431FB6 for ; Thu, 11 Jul 2013 01:39:22 -0700 (PDT) Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UxCPI-0006Q5-QX for notmuch@notmuchmail.org; Thu, 11 Jul 2013 01:39:20 -0700 Date: Thu, 11 Jul 2013 01:39:20 -0700 (PDT) From: ingo To: notmuch@notmuchmail.org Message-ID: <1373531960691-4028438.post@n3.nabble.com> In-Reply-To: <20130710125911.GA7198@kuru.dyndns-at-home.com> References: <51DC0A16.5080704@2b1.de> <87mwpvd1fp.fsf@qmul.ac.uk> <1373457313852-4028436.post@n3.nabble.com> <20130710125911.GA7198@kuru.dyndns-at-home.com> Subject: Re: notmuch search --output=files error with AND NOT search terms MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 08:39:26 -0000 Hi Suvayu, Suvayu Ali wrote > Hi Ingo, > > On Wed, Jul 10, 2013 at 04:55:13AM -0700, ingo wrote: >> Mark Walters wrote >> > >> > The most likely cause is that these two messagefiles have the same >> > message-ids (so in notmuch's view are the same message). Try >> > >> > notmuch search --output=messages folder:1_Personal AND NOT >> tag:1_Personal >> > >> > If you only see one message-id then notmuch thinks there is a single >> > message >> > that matches the search. The way notmuch works is that it first finds >> > which messages match and then prints the requested information for >> those >> > messages. So in this case it finds the matching message(s) then prints >> > all filenames for those matching messages. >> >> Hi Mark, >> >> thank you for your answer, actually I only get one single message id, the >> one I get without using --output=files. >> >> notmuch search --output=messages folder:1_Personal AND NOT >> tag:1_Personal >> id: > f76b9be792c46795945e1486ccb2b2ab@.kikidan > > Doesn't that confirm Mark's explanation? Notmuch sees multiple files > associated to the same message (identified by the message id). Yes, you are right, don't know where I had my head when answering. And both mails have the same message-id in the message header. Still, only one of both files really should be found with this search, so why is the out put different? Kind regards, Ingo -- View this message in context: http://notmuch.198994.n3.nabble.com/notmuch-search-output-files-error-with-AND-NOT-search-terms-tp4028432p4028438.html Sent from the notmuch mailing list archive at Nabble.com.