Re: search summary and exclusions
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 28 May 2012 17:03:35 +0000 (10:03 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:29 +0000 (09:47 -0800)
c9/237b24465d699f578a647c7d52b788275dea1b [new file with mode: 0644]

diff --git a/c9/237b24465d699f578a647c7d52b788275dea1b b/c9/237b24465d699f578a647c7d52b788275dea1b
new file mode 100644 (file)
index 0000000..98d1659
--- /dev/null
@@ -0,0 +1,104 @@
+Return-Path: <jrollins@finestructure.net>\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 3FAD9431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 28 May 2012 10:03:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 EQSL14F2s5lR for <notmuch@notmuchmail.org>;\r
+       Mon, 28 May 2012 10:03:44 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3A345431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 28 May 2012 10:03:44 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 87C182E50D64;\r
+       Mon, 28 May 2012 10:03:41 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.192.57])\r
+       (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id C0DA22E50C6E;\r
+       Mon, 28 May 2012 10:03:38 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 6FBB4102; Mon, 28 May 2012 10:03:38 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Peter Wang <novalazy@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: search summary and exclusions\r
+In-Reply-To: <20120529000012.GF2331@hili.localdomain>\r
+References: <20120529000012.GF2331@hili.localdomain>\r
+User-Agent: Notmuch/0.13+24~g16915cd (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 28 May 2012 10:03:35 -0700\r
+Message-ID: <87mx4sp79z.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\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: Mon, 28 May 2012 17:03:46 -0000\r
+\r
+--=-=-=\r
+\r
+On Mon, May 28 2012, Peter Wang <novalazy@gmail.com> wrote:\r
+> Exclusions don't work the way I expected with the search command and\r
+> --output=summary.  I would like messages with excluded tags to be\r
+> treated as if they don't exist at all, but currently:\r
+>\r
+>   * excluded messages are counted towards the "total"\r
+>   * excluded tags are included in the "tags" set\r
+>\r
+> Are these deliberate?  Especially the second point seems to conflict\r
+> with search --output=tags, which doesn't show excluded tags.\r
+\r
+Hi, Peter.  Can you explain more what you mean?  I'm not sure what your\r
+two bullets have to do with --output=summary.  Messages are counted with\r
+the count subcommand, and tags are shown with search --output=tags,\r
+neither of which have anything to do with --output=summary, and both of\r
+which accept the exclude flag:\r
+\r
+notmuch count --exclude=true '*'\r
+notmuch search --output=tags --exclude=true '*'\r
+\r
+Maybe you can give a clearer explanation of what your issue is.\r
+Examples help.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPw6/oAAoJEO00zqvie6q84aIQAJtDoux9K+6acYm4DAGDsRLw\r
+/cmdDg8byK2Wc6nNpKAlD3A0hbql1cjU+VVTOTSYbBuiuLENA0CY9ITBBsCneEOP\r
+FEdW/4vcMLeKzFaLYkXKGDdF4Zr3AprCRRqRTQtwzIfONsVkyhG5YEEPoX6aLLH5\r
+qpYzaQBO83QlNxCA5xGvT9gsVQPg1Bz2lLfRuKvZGy7jp0hRo3361cVFeCX8cwg9\r
+efzufBAjlMDlWhHcz7vqlS/BvKGDkMDmeq5ojFpRwai5i+fdy1wEixUiauLvO4Dc\r
+v8YO14Hi3kSOEUy7t6ptjPNiZlhB7PG+Zn5RwnNDvllAsdnQEV4v5q3jaVsZ4F3k\r
+qvTmoY2RbOncbzyRoR9WXtoRp6O3HuYJoTyLxVSCLXqLzsttDyw/HiE5tyQfcylE\r
+DPFY+9RsmYGIW3gczbNf4rpcy26ur1X2p4pclWaprwUZrgodJqFHH7frhCjecrhr\r
+J37u3rGmB2OfZtW49IA+4+Flu006+uYfsjslZmJF/g0mGTG3xxfKF/XSG4KVJ86z\r
+C3oCBcEWavQzl2yii55RoWtzqJ0B6meGRnpVfO+XPhGlnx7lSt5RD/zAQoADdRfw\r
+BZGPCgzQjtypicN4PbGaehWrZI+HBxzD4lguHjj7ggMlTT+cUOeGUPtu/1/HPGhh\r
+IwBnbwRiF96gDvxTBA7s\r
+=ZH4o\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r