Re: [PATCH] emacs: Make the queries used in the all-tags section
authorDaniel Schoepe <daniel.schoepe@googlemail.com>
Wed, 25 May 2011 10:04:14 +0000 (12:04 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:20 +0000 (09:38 -0800)
4b/b511fc97b8b648e18b6105b19eda58f5207ffc [new file with mode: 0644]

diff --git a/4b/b511fc97b8b648e18b6105b19eda58f5207ffc b/4b/b511fc97b8b648e18b6105b19eda58f5207ffc
new file mode 100644 (file)
index 0000000..9311a0e
--- /dev/null
@@ -0,0 +1,142 @@
+Return-Path: <daniel.schoepe@googlemail.com>\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 6D6FD431FD0\r
+       for <notmuch@notmuchmail.org>; Wed, 25 May 2011 03:04:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 wiMkZbyvz+J0 for <notmuch@notmuchmail.org>;\r
+       Wed, 25 May 2011 03:04:35 -0700 (PDT)\r
+Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 895BC431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 25 May 2011 03:04:35 -0700 (PDT)\r
+Received: by bwg12 with SMTP id 12so6922353bwg.26\r
+       for <notmuch@notmuchmail.org>; Wed, 25 May 2011 03:04:34 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=domainkey-signature:from:to:cc:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=+uEu4+V2xeEFYArqGVhWHmD2HQq7kpUYNyG4XDJGu10=;\r
+       b=gms3MvZOuRmJ9qcBm5xf0NbnMnBUcE9EGPO6AY8jBF/5M8L45Y9ijQy9y1hetHl3Gc\r
+       L8qQFj20GjEISSH7cJNQPp6Ll5OL3ZAjhkJ/QR7I3Hv7/a5zXElVrXoWWmK5OQNrAmu2\r
+       Owz/Gvw91wllWSABb5dq4R9ZDq2p7GABakxRg=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;\r
+       h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
+       :message-id:mime-version:content-type;\r
+       b=E6rTRxigPyoaJBy93Q85/u9LWevfblAei+adRxQQRXFfU1ALKd5eHcHEKDmBVOFhdQ\r
+       dqmPwkgvogq3j9OWzrp02/rZA98KS2uR3dYp9AkMQZE16zmgZ0ENKsBGAS9qAnJst7p/\r
+       4szsV+mK5F3nItEbxLUzsZwdbCtFLRG+iEJ6U=\r
+Received: by 10.204.25.20 with SMTP id x20mr4291845bkb.112.1306317873956;\r
+       Wed, 25 May 2011 03:04:33 -0700 (PDT)\r
+Received: from localhost (s1664.dyn.hrz.tu-darmstadt.de [130.83.110.128])\r
+       by mx.google.com with ESMTPS id d25sm5110837bkd.5.2011.05.25.03.04.31\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 25 May 2011 03:04:32 -0700 (PDT)\r
+From: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
+To: Austin Clements <amdragon@mit.edu>\r
+Subject: Re: [PATCH] emacs: Make the queries used in the all-tags section\r
+In-Reply-To: <BANLkTinKS5LbQsZuK8HyCzj+Lo4xqa2Sfg@mail.gmail.com>\r
+References: <87fwoath2s.fsf@gilead.home.box>\r
+       <BANLkTinKS5LbQsZuK8HyCzj+Lo4xqa2Sfg@mail.gmail.com>\r
+User-Agent: Notmuch/0.5-210-gbc2cb5b (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Wed, 25 May 2011 12:04:14 +0200\r
+Message-ID: <871uznqeox.fsf@tredergarh.home.box>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Cc: notmuch@notmuchmail.org\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: Wed, 25 May 2011 10:04:36 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Wed, 25 May 2011 00:10:43 -0400, Austin Clements <amdragon@mit.edu> wrot=\r
+e:\r
+> Out of curiosity, what use cases do you envision for this?  So far\r
+> I've only heard two, both of which seem like great ideas, but neither\r
+> of which require such a heavy-handed solution: displaying unread\r
+> counts for tags rather than total counts, and hiding unused tags.\r
+\r
+Another thing I use this for, is to hide messages/threads with a\r
+"killed"-tag.\r
+\r
+Anyway, I don't think this solution is very "heavy-handed", since it\r
+doesn't add any significant complexity to the UI code and for people who\r
+know elisp, writing such a query-construction function is not something\r
+"heavy-weight" either, so I don't think giving up the extra flexibility\r
+is really worth it.\r
+\r
+The only problem I see is what Carl Worth mentioned: Users unaccustomed\r
+to elisp can't do much with this configuration variable.\r
+\r
+> I would argue that we *always* want to display unread counts (maybe in\r
+> addition to total counts, or maybe not).  In fact, I'm generally\r
+> surprised by how little notmuch treats the "unread" specially, given\r
+> how important that tag is to the user.  For example, I would similarly\r
+> find unread counts in the search results far more useful than the\r
+> count of messages matching the query.\r
+\r
+I think most users would agree with this, but I still think we\r
+should keep/make it configurable.\r
+\r
+> Hiding unused tags also seems like a genuinely useful feature, and\r
+> could be accomplished with a very simple customization UI (perhaps\r
+> even linked directly from the hello buffer).\r
+>=20\r
+> It seems to me like anything more sophisticated is better suited to a\r
+> saved search.\r
+\r
+I think a sensible compromise would be to allow either a function or a\r
+string that is appended (which people could set to "and tag:unread") for\r
+the proposed configuration variable and additionally to add a\r
+variable that lists tags that should be hidden (which would also be\r
+easily modifiable in M-x customize).\r
+\r
+Cheers,\r
+Daniel\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJN3NQfAAoJEIaTAtce+Z+JWOYP/iOplUxYRskO1OKOXvykmUHj\r
+VSK8p5BJgWN25QMDENrkuv6KgUfJx+w4P/R55BtQSUTclcd9jU9Hu9bXk3LjfSFH\r
+tK6kdT4WRGPtuWXVexWoW16nHn+ay0HeOVXfnh8UQ9w/XTjn7/ZYC6T0X9lLsC3D\r
+/jmkScKJHqnYDa6rQixPlm5i7Xs6/0gk1aB3BJlYl05aYJMQ92SynVe39QdEK4I0\r
+WtR9t/FlPGHlvwElqnF1M4qmjLXijaktRWkaqgyJD0jEphRqb7tGAX5ys9n7rhdT\r
+1ZT+Pfwvu1g9g5gGkqBVGscCN1gGlGlucSAVIiuoMpeRa1EJKWLHLqOwIwtDthK+\r
+cyAcN2ZYW4Za9ARJMV74oaBVUcTy4W93BbQfovJpIerhPOvJEkmERiaVcE6bfc6u\r
+iXOGgSe4TiGtbDU8SzNPU9Gsr1p+6sCC8oD4gXJCJ83L0KdTJ7phU/tz354yHDqr\r
+BpVzLIMxcsawkvY9cYv7nyXaUCATcUQEqCN9AOhSiNBtmh7LWBo1E8px/aI00cPl\r
+8A3mi/JjEnCSVXgPWiFz9Il4y4jwHnqTQFWJCafazV3nbzIp9QRnCkHxO3Y9Kn6z\r
+lvE6O3YIAB4WKoH/itasYLZ3+NAI+LEGQbuwEA/t8KNBA1MuJP+DIAontoY+cBbO\r
+sPnchc4NmSXTv5x66UuY\r
+=cC2D\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r