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 F184B4196F0 for ; Sun, 18 Apr 2010 06:57:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-0.001] 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 1hkCBEtB7JoN for ; Sun, 18 Apr 2010 06:57:07 -0700 (PDT) Received: from homiemail-a11.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id CB3C8431FC1 for ; Sun, 18 Apr 2010 06:57:07 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 0FEBB19406F; Sun, 18 Apr 2010 06:57:02 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Sun, 18 Apr 2010 15:56:58 +0200 From: "Sebastian Spaeth" To: Olly Betts , notmuch@notmuchmail.org Subject: Re: [PATCH] allow to not sort the search results In-Reply-To: <87eiifj433.fsf@SSpaeth.de> References: <1271226655-5672-1-git-send-email-Sebastian@SSpaeth.de> <20100414065525.GA11770@jdc.jasonjgw.net> <87hbnebhg0.fsf@SSpaeth.de> <87eiifj433.fsf@SSpaeth.de> Date: Sun, 18 Apr 2010 15:56:58 +0200 Message-ID: <87wrw4sw2d.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Sun, 18 Apr 2010 13:57:09 -0000 On 2010-04-16, Sebastian Spaeth wrote: > Olly was right in that even for "notmuch tag" we were sorting the > results by date before applying tag changes. I have slightly reworked my > patch to have notmuch tag avoid doing that. I also split up the patch in > 3 patches that do one thing each. > > The patches do: > 1: Introduce NOTMUCH_SORT_UNSORTED > 2: Introduce notmuch search --sort=unsorted > 3: Make notmuch tag not sort results by date > > #2 is the one I am least sure about, I don't know if there is a use case > for notmuch search returning unsorted results. But 1 & 3 are useful at > least. > Patches 1-3 follow as reply to this one May I advocate patches 1 & 3 for inclusion in 0.3? I've been using this in my tree without problems. patch 2 is left to your judgement as to whether a "--sort=unsorted" is useful for notmuch search. (it will probably rather benefit from a --sort=relevance, I guess). Sebastian