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 19644431FD0 for ; Tue, 24 May 2011 21:10:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-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 eeoka8eab0wt for ; Tue, 24 May 2011 21:10:44 -0700 (PDT) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C1E57431FB6 for ; Tue, 24 May 2011 21:10:44 -0700 (PDT) Received: by qwb7 with SMTP id 7so4499387qwb.26 for ; Tue, 24 May 2011 21:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9MIh+o3jlDdybsbvCUDnHi9CNt2VEm1VVBVTnk0ctAk=; b=IX94jSoUAJiWdb8+pDM72qtG/lUaH3FRm2MlJw3YsANj/72hqkwRB4gM5sU4dWJ4Uq 6/J+TJph3tHQtQ8WXgn7B0uokSTWLzShbHOZu2n1p76XdO52apNP5mo2WP5+W5ncE0UP 2Zpctqg19PCCr1MMY6tK5NRfHYtSWbWstP/gg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=NRtl4N2mbQW1rZugCo/+smwh+rsZp7qTZXuiSllM3w9Je1mmxDzlhI+8RNevNjbfAJ vsYqS/ih2XVZoyY7RXoNxcKLJRrzXT89fucf6ndbEsbFEocxoSBojxTHR0LQmzRneS6O JGF93rHOTx8Lve3e7DW2Zvxxj/CrcPtxoKkKY= MIME-Version: 1.0 Received: by 10.229.35.1 with SMTP id n1mr3465919qcd.84.1306296643630; Tue, 24 May 2011 21:10:43 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.188.68 with HTTP; Tue, 24 May 2011 21:10:43 -0700 (PDT) In-Reply-To: <87fwoath2s.fsf@gilead.home.box> References: <87fwoath2s.fsf@gilead.home.box> Date: Wed, 25 May 2011 00:10:43 -0400 X-Google-Sender-Auth: -HWzIMRuwx_FaiQsX6BlJHH3i-w Message-ID: Subject: Re: [PATCH] emacs: Make the queries used in the all-tags section From: Austin Clements To: Daniel Schoepe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: notmuch@notmuchmail.org 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, 25 May 2011 04:10:46 -0000 Out of curiosity, what use cases do you envision for this? So far I've only heard two, both of which seem like great ideas, but neither of which require such a heavy-handed solution: displaying unread counts for tags rather than total counts, and hiding unused tags. I would argue that we *always* want to display unread counts (maybe in addition to total counts, or maybe not). In fact, I'm generally surprised by how little notmuch treats the "unread" specially, given how important that tag is to the user. For example, I would similarly find unread counts in the search results far more useful than the count of messages matching the query. Hiding unused tags also seems like a genuinely useful feature, and could be accomplished with a very simple customization UI (perhaps even linked directly from the hello buffer). It seems to me like anything more sophisticated is better suited to a saved search. On Thu, May 19, 2011 at 7:18 PM, Daniel Schoepe wrote: > > From the commit message: > > =A0 =A0emacs: Make queries used in the all-tags section configurable > > =A0 =A0This patch adds a customization variable that controls what querie= s > =A0 =A0are used to construct the all-tags section in notmuch-hello. It al= lows > =A0 =A0the user to specify a function to construct the query given a tag.= It > =A0 =A0also allows hiding tags by returning nil. > > Possible uses would be things like displaying the unread count for > tags instead of all messages with that tag and/or hiding uninteresting > tags like "signed" or "encrypted". > > -- Daniel