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 BC2454196F0 for ; Thu, 3 Jun 2010 17:45:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham 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 eiWrJ-5bTlhJ; Thu, 3 Jun 2010 17:45:21 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 141A9431FC1; Thu, 3 Jun 2010 17:45:21 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id B4F0B568F2D; Thu, 3 Jun 2010 17:45:20 -0700 (PDT) From: Carl Worth To: David Edmondson , Keith Packard , notmuch@notmuchmail.org Subject: Re: [PATCH] Customize saved search order separately from regular search order In-Reply-To: <87d3xcexq9.fsf@ut.hh.sledj.net> References: <1272920307-25995-1-git-send-email-keithp@keithp.com> <87d3xcexq9.fsf@ut.hh.sledj.net> User-Agent: Notmuch/0.3.1-22-g1d528f8 (http://notmuchmail.org) Emacs/23.1.1 (i486-pc-linux-gnu) Date: Thu, 03 Jun 2010 17:45:20 -0700 Message-ID: <87d3w7eicf.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Fri, 04 Jun 2010 00:45:31 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 04 May 2010 12:02:22 +0100, David Edmondson wrote: > On Mon, 3 May 2010 13:58:27 -0700, Keith Packard wro= te: > > I use 'saved searches' as a folder mechanism and want them to be shown > > oldest first. Otherwise, while searching for messages normally, I want > > to see the most recent messages first. This patch makes these two > > default search orders separate. >=20 > This is a nice patch. I think this is a nice start, but that we actually want a different notion here. Keith happens to use saved searches only for subsets of his inbox and in that case, it makes a lot of sense to see the results of all of these messages in an oldest-first order. But saved searches are also useful for simply capturing what might be an often-used but otherwise painful-to-keep-retyping search expression where the user really wants the results to appear with the newest message first, (which is the default search-results order after all). So I think what we actually want here is an additional member for our saved-search tuple which indicates the desired search order for that particular search. That's the only way I see to support a single user who wants to take advantage of both kinds of searches. Thoughts? A separated, but perhaps related idea would be to explicitly support the notion of one search being a subset of another. I have an "inbox" search (tag:inbox) and several searches that are subsets, ("notmuch" is "tag:notmuch and tag:inbox"). If this were setup as an actual hierarchy it might have two advantages: 1. It would be a bit simpler to specify all of theses searches, I wouldn't have to keep repeating "and tag:inbox" in each. This would be particularly important if I changed the criteria for the top-level search. 2. If the various levels of the hierarchy were displayed separately it would be easier for me to focus on processing all of my inbox folders (which happen to be oldest-first)--archiving each down to 0 messages, without being distracted by several (newest-first) saved searches that will only ever grow and don't have any processing/archiving associated with them. I think that currently I'm not using any of these always-growing/newest-first searches in part because they would be mixed up with my inbox-subset folders and would thereby be distracting. So (2) above would allow me to start using them, and then I would want the feature to selectively set the search order. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFMCEyg6JDdNq8qSWgRAgiNAJ9K3TrpZxXO0qlaflNZ2LJeokTQEQCdFy0B MvZepJrxy9j5hrjHBMG0MuM= =N+bD -----END PGP SIGNATURE----- --=-=-=--