From 39e469da3b03e9b9224a013fa1b8e9f763242533 Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Tue, 29 May 2012 00:00:12 +1000 Subject: [PATCH] search summary and exclusions --- 47/6baacfa5d44e88d4ccbc1b0935477878385635 | 77 +++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 47/6baacfa5d44e88d4ccbc1b0935477878385635 diff --git a/47/6baacfa5d44e88d4ccbc1b0935477878385635 b/47/6baacfa5d44e88d4ccbc1b0935477878385635 new file mode 100644 index 000000000..2570ddfce --- /dev/null +++ b/47/6baacfa5d44e88d4ccbc1b0935477878385635 @@ -0,0 +1,77 @@ +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 1982C431FAF + for ; Mon, 28 May 2012 07:00:20 -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 fcOXkJds8qG9 for ; + Mon, 28 May 2012 07:00:19 -0700 (PDT) +Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com + [209.85.160.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A3F96431FAE + for ; Mon, 28 May 2012 07:00:19 -0700 (PDT) +Received: by pbbrr13 with SMTP id rr13so5828462pbb.26 + for ; Mon, 28 May 2012 07:00:18 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=date:message-id:from:to:subject:mime-version:content-type + :content-disposition:content-transfer-encoding; + bh=Q7tczjLxBckf76MVU0+B+gDS6bjBQARQyp1lA74eqjc=; + b=W6M25YHu2zwrgoqeb3bo7z6TFlD9V0tc2mHrIvFu1ueOFCVXbysnvsXLUgK9VK4jtR + DieC/nRzuEXpZVmm+Ib0Tdcf86MMykb0RIk0Jgym/kKpM57NTvEqQ25Uwz+iKP4y2SON + XC3VxKGk+Ji+n1aHfo6D7ORb6mjKZWJeaYJBGn/3PbNcUrOdJ229QY1y96uG3vk4rQAS + sH+F0eEUegOKV1G4YbGyX/p8/EXVU6xda152MB8ZWgrjkpTHVV78dg5TkUybJbs1WR/l + UJXOlvkCqSXxbSyuR6bOTOIYy/SZ3Qdqw3qLCUESpaIVzDSr+G5b6ewUSF3+rgfmPY7s + covw== +Received: by 10.68.194.105 with SMTP id hv9mr27963603pbc.126.1338213618827; + Mon, 28 May 2012 07:00:18 -0700 (PDT) +Received: from localhost (215.42.233.220.static.exetel.com.au. + [220.233.42.215]) + by mx.google.com with ESMTPS id pb3sm10695515pbc.6.2012.05.28.07.00.16 + (version=TLSv1/SSLv3 cipher=OTHER); + Mon, 28 May 2012 07:00:17 -0700 (PDT) +Date: Tue, 29 May 2012 00:00:12 +1000 +Message-ID: <20120529000012.GF2331@hili.localdomain> +From: Peter Wang +To: notmuch@notmuchmail.org +Subject: search summary and exclusions +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Disposition: inline +Content-Transfer-Encoding: 8bit +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: Mon, 28 May 2012 14:00:20 -0000 + +Hi, + +Exclusions don't work the way I expected with the search command and +--output=summary. I would like messages with excluded tags to be +treated as if they don't exist at all, but currently: + + * excluded messages are counted towards the "total" + * excluded tags are included in the "tags" set + +Are these deliberate? Especially the second point seems to conflict +with search --output=tags, which doesn't show excluded tags. + +Peter -- 2.26.2