From b0e990b46b15e28af2c49702f4f35bf295ce43b7 Mon Sep 17 00:00:00 2001 From: Suvayu Ali Date: Wed, 10 Jul 2013 14:59:11 +0200 Subject: [PATCH] Re: notmuch search --output=files error with AND NOT search terms --- 73/4b217e45a65952d8b2cb64b9114541546b5138 | 104 ++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 73/4b217e45a65952d8b2cb64b9114541546b5138 diff --git a/73/4b217e45a65952d8b2cb64b9114541546b5138 b/73/4b217e45a65952d8b2cb64b9114541546b5138 new file mode 100644 index 000000000..e3fb6d2cb --- /dev/null +++ b/73/4b217e45a65952d8b2cb64b9114541546b5138 @@ -0,0 +1,104 @@ +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 177CA431FB6 + for ; Wed, 10 Jul 2013 05:59:25 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 stgLKS4Q0LCr for ; + Wed, 10 Jul 2013 05:59:17 -0700 (PDT) +Received: from mail-ea0-f179.google.com (mail-ea0-f179.google.com + [209.85.215.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9D8FA431FAE + for ; Wed, 10 Jul 2013 05:59:17 -0700 (PDT) +Received: by mail-ea0-f179.google.com with SMTP id b15so4871902eae.38 + for ; Wed, 10 Jul 2013 05:59:16 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=sender:date:from:to:subject:message-id:mail-followup-to:references + :mime-version:content-type:content-disposition:in-reply-to + :user-agent; bh=Sq8VcneH9wfxBzxJRyW4W8aCseBr2UjirhpUcZnfTnk=; + b=ivVYwwpgGVi8jWY/bp0TAZjMUeWSLh/S+NkkrSKaON3YauTBoS4YEGSiWHwCWE6K01 + M16Xe5G8QZPW2zrIqtFTJJv1dqxxXJKf+/lwaeqGI9I48eiRZ5LefLPqVNhePg7b1kXL + Hg/3wCEI8mK3wvRMU1XnKJ+tq9+yrsuqAu2f43CHmEyYkg5GQFGCBlbs8nxRwKjF1VXi + fE86tD/cy6waclAc5JzSRzM3j9EuFYm/JzI5+BJ26yJj5GOTvJ6ap+KhnvOesHuVVU+U + F3J1gkE/8J6ZIQVaPGfgM3XVlQcsnJLVnWt4txYf9mv5iOwQzjHjCHbq9fExtrFtdV0U + 2kPQ== +X-Received: by 10.15.25.2 with SMTP id k2mr35483109eeu.99.1373461155161; + Wed, 10 Jul 2013 05:59:15 -0700 (PDT) +Received: from kuru.dyndns-at-home.com + ([2001:610:120:3001:f2de:f1ff:fe37:c76c]) + by mx.google.com with ESMTPSA id b7sm59716511eef.16.2013.07.10.05.59.13 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Wed, 10 Jul 2013 05:59:13 -0700 (PDT) +Sender: suvayu ali +Date: Wed, 10 Jul 2013 14:59:11 +0200 +From: Suvayu Ali +To: notmuch@notmuchmail.org +Subject: Re: notmuch search --output=files error with AND NOT search terms +Message-ID: <20130710125911.GA7198@kuru.dyndns-at-home.com> +Mail-Followup-To: notmuch@notmuchmail.org +References: <51DC0A16.5080704@2b1.de> <87mwpvd1fp.fsf@qmul.ac.uk> + <1373457313852-4028436.post@n3.nabble.com> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +In-Reply-To: <1373457313852-4028436.post@n3.nabble.com> +User-Agent: Mutt/1.5.21 (2012-12-30) +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 12:59:25 -0000 + +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@www.kikidan.com + +Doesn't that confirm Mark's explanation? Notmuch sees multiple files +associated to the same message (identified by the message id). + +Hope this helps, + +-- +Suvayu + +Open source is the future. It sets us free. -- 2.26.2