Re: [PATCH] allow to not sort the search results
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Sun, 18 Apr 2010 13:56:58 +0000 (15:56 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:43 +0000 (09:36 -0800)
8d/db5b5a7876933b60138cbde04fef780dec28dd [new file with mode: 0644]

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