From: ingo Date: Wed, 10 Jul 2013 11:55:13 +0000 (+1700) Subject: Re: notmuch search --output=files error with AND NOT search terms X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5fbbb47fef6d25824d84b32373d6d050c7096afb;p=notmuch-archives.git Re: notmuch search --output=files error with AND NOT search terms --- diff --git a/90/9f555634eb4aeb897e09a9b993b34740b10f6e b/90/9f555634eb4aeb897e09a9b993b34740b10f6e new file mode 100644 index 000000000..41cf55850 --- /dev/null +++ b/90/9f555634eb4aeb897e09a9b993b34740b10f6e @@ -0,0 +1,106 @@ +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 1EAB6431FAF + for ; Wed, 10 Jul 2013 04:55:25 -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 qYQRb92W2vK8 for ; + Wed, 10 Jul 2013 04:55:15 -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 7C010431FAE + for ; Wed, 10 Jul 2013 04:55:15 -0700 (PDT) +Received: from ben.nabble.com ([192.168.236.152]) + by sam.nabble.com with esmtp (Exim 4.72) + (envelope-from ) id 1UwszJ-0004lu-SO + for notmuch@notmuchmail.org; Wed, 10 Jul 2013 04:55:13 -0700 +Date: Wed, 10 Jul 2013 04:55:13 -0700 (PDT) +From: ingo +To: notmuch@notmuchmail.org +Message-ID: <1373457313852-4028436.post@n3.nabble.com> +In-Reply-To: <87mwpvd1fp.fsf@qmul.ac.uk> +References: <51DC0A16.5080704@2b1.de> <87mwpvd1fp.fsf@qmul.ac.uk> +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: Wed, 10 Jul 2013 11:55:25 -0000 + +Mark Walters wrote +> Hi +> +>> Hi list, +>> +>> I am trying to check for mails, that are tagged differently from their +>> mailfolder. +>> +>> So I am searching like this, for example: +>> +>> notmuch search folder:1_Personal AND NOT tag:1_Personal +>> thread:0000000000005613 2008-01-15 [1/1] KIKIDAN News; kikidan +>> news 2008/01: Willkommen im neuen Jahr (inbox to-me) +>> +>> That's OK, but if I want to get the file name of the message, suddenly +>> get another message, which isn't located in the 1_Personal folder at all. +>> +>> notmuch search --output=files folder:1_Personal AND NOT +>> tag:1_Personal +>> /home/ianus/Mail/ingo-2b1-de/INBOX/cur/1362131239_2.9026.cordraconis,U=33535,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S +>> /home/ianus/Mail/ingo-2b1-de/1_Personal/cur/1361052415_0.30588.cordraconis,U=755,FMD5=2bd412d62930ab474a218128a61bdb68:2,S +>> +> +> 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@www.kikidan.com + +How about the nextmost likely cause :-) + + +Kind regards, + +Ingo + + + + + +-- +View this message in context: http://notmuch.198994.n3.nabble.com/notmuch-search-output-files-error-with-AND-NOT-search-terms-tp4028432p4028436.html +Sent from the notmuch mailing list archive at Nabble.com.