Re: search summary and exclusions
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 29 May 2012 15:00:00 +0000 (08:00 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:30 +0000 (09:47 -0800)
d9/9d3f501e05d3b8c5effed52cfb300d93e1edc1 [new file with mode: 0644]

diff --git a/d9/9d3f501e05d3b8c5effed52cfb300d93e1edc1 b/d9/9d3f501e05d3b8c5effed52cfb300d93e1edc1
new file mode 100644 (file)
index 0000000..d4398ea
--- /dev/null
@@ -0,0 +1,118 @@
+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 87CDB431FC7\r
+       for <notmuch@notmuchmail.org>; Tue, 29 May 2012 08:00:11 -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 yWPGkRN+zObe for <notmuch@notmuchmail.org>;\r
+       Tue, 29 May 2012 08:00:11 -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 14F82431FBC\r
+       for <notmuch@notmuchmail.org>; Tue, 29 May 2012 08:00:11 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 6EB232E50D8C;\r
+       Tue, 29 May 2012 08:00:08 -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 615902E50E2C;\r
+       Tue, 29 May 2012 08:00:05 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 6A850938; Tue, 29 May 2012 08:00:02 -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: <20120529140107.GE2347@hili.localdomain>\r
+References: <20120529000012.GF2331@hili.localdomain>\r
+       <87mx4sp79z.fsf@servo.finestructure.net>\r
+       <20120529140107.GE2347@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: Tue, 29 May 2012 08:00:00 -0700\r
+Message-ID: <87fwajnibz.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: Tue, 29 May 2012 15:00:11 -0000\r
+\r
+--=-=-=\r
+\r
+On Mon, May 28 2012, Peter Wang <novalazy@gmail.com> wrote:\r
+> % ./notmuch search --format=json --exclude=true -- thread:0000000000009598 tag:unread\r
+> [{"thread": "0000000000009598",\r
+> "timestamp": 1338231998,\r
+> "date_relative": "Today 05:06",\r
+> "matched": 1,\r
+> "total": 15,\r
+> "authors": "Mark Walters| Peter Wang",\r
+> "subject": "[PATCH v6 3/6] cli: make --entire-thread=false work for format=json.",\r
+> "tags": ["deleted", "draft", "replied", "sent", "unread"]}]\r
+>\r
+> Here is a thread I participated in.  From this, my MUA displays "1/15",\r
+> suggesting that there is 1 unread message out of a total of 15.  But\r
+> upon opening the thread, there are only 11 messages visible: 4 were\r
+> drafts (possibly deleted) which have been excluded.  To the user, it\r
+> looks like some messages went missing.\r
+>\r
+> Therefore I would like search --output=summary --exclude=true\r
+> to report the total number of non-excluded messages.  It doesn't need to\r
+> be via the "total" field; a new field would be fine.\r
+\r
+What you have pasted above is --output=json, not --output=summary.  The\r
+formats are quite different.  What are you asking for a change in?\r
+\r
+But regardless, I don't think I would like to see the changes you\r
+suggest.  I would like for the thread total to list the total number of\r
+messages in the thread, regardless whether they're excluded or not.\r
+Same for the tags.  I think I want to continue to see if excluded\r
+messages are in a returned thread.  The desire to hide the excluded\r
+messages in the output is why they're marked as hidden/not visible.\r
+\r
+Think about the excludes as acting on the search itself, and less on the\r
+output.  We exclude messages from search, but if they show up in a\r
+returned thread we at least acknowledge that they're there.\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
+iQIcBAEBCAAGBQJPxORwAAoJEO00zqvie6q84jIP/jpe6C6hDz2rN/KAKgXN8pSk\r
+IwbB7r5llVTIgdFQjhgAOcTw9+MTOjFDQzgbUkF5GjrUfbjnMMjKLuLZpvhu0Wvb\r
+yg9Wmlf2Y4FmJcWIOlpMLC2yiQadefMtPWreskDzeg5lds6AU/PRBovwSBBDM19S\r
+ZzwXFEIFYY3iIpTiGniQL9HrqM2n2X/qJ2dAOlHitls4TXS9tWf4uqICTfaddg0J\r
+uzwBWFqkKpT7r2ruGcQ5DQjRi7Vh9dwQxGLIy4jMDeUumaJ5ezHlyFAJfiU3PWa3\r
+KBY3Oy1eVo24rsFagc02bO2dlF9KEPSaxEEmRY3vV2QU1FwbG123YyW2Ednd8Im3\r
+Ob+J86GSa2PJlx/EPdjioqexOMZTeLUYuH6vTxiGAtU2pZRaw5cm3CtQuWU1gPVf\r
+ngrx0Rtilxn63pHG11a2TlS8a3Xwjltsy5mcNuA+eC/bmU7G22hfsgUtCeuKnCQ/\r
+mFSdGUHL7OEGZ002Q4WQGRlher8RkNFIxzfEvgIQCoGziJQNChQGYVf2Vg6LDG9I\r
+uZxl4BeioZrz/tEIfx4xZUf74Xq0TwThuoqaSQgBDeK2rY3PNuQJM/JxNHT6UbTx\r
+S4nXB7KcUYJMbc0Do0Yy4Fj32QBd480I2oZhVf2gvdPHmfNUgoAGu8w9BNDCLf1e\r
++ac5T+t/bCRDjm0EOrEm\r
+=1PLn\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r