Re: [PATCH] Return maximum of 150 results
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 19 Aug 2011 16:00:36 +0000 (18:00 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:16 +0000 (09:39 -0800)
12/91fab22f50caffab964a52860b7cf7dd68eed2 [new file with mode: 0644]

diff --git a/12/91fab22f50caffab964a52860b7cf7dd68eed2 b/12/91fab22f50caffab964a52860b7cf7dd68eed2
new file mode 100644 (file)
index 0000000..9164e5d
--- /dev/null
@@ -0,0 +1,130 @@
+Return-Path: <sojka@os.inf.tu-dresden.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 A6FAB429E25\r
+       for <notmuch@notmuchmail.org>; Fri, 19 Aug 2011 09:00:40 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 VmgnR5IQ4Esa for <notmuch@notmuchmail.org>;\r
+       Fri, 19 Aug 2011 09:00:39 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 05C48431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 19 Aug 2011 09:00:39 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 4F24E19F333A;\r
+       Fri, 19 Aug 2011 18:00:38 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id DIwy78S3ZiKI; Fri, 19 Aug 2011 18:00:37 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 3F99C3CFE71;\r
+       Fri, 19 Aug 2011 18:00:37 +0200 (CEST)\r
+Received: from steelpick.2x.cz (unknown [141.76.49.12])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id 3D950FA003;\r
+       Fri, 19 Aug 2011 18:00:37 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.76)\r
+       (envelope-from <sojka@os.inf.tu-dresden.de>)\r
+       id 1QuRUq-00070z-Ua; Fri, 19 Aug 2011 18:00:36 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: James Vasile <james@hackervisions.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] Return maximum of 150 results\r
+In-Reply-To: <87r54hv2ct.fsf@opensourcematters.org>\r
+References: <87zkj6um50.fsf@opensourcematters.org>\r
+       <87mxf5v43c.fsf@steelpick.2x.cz>\r
+       <87r54hv2ct.fsf@opensourcematters.org>\r
+User-Agent: Notmuch/0.6.1-91-g55c2c34 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 19 Aug 2011 18:00:36 +0200\r
+Message-ID: <877h69o0gr.fsf@steelpick.2x.cz>\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: Fri, 19 Aug 2011 16:00:40 -0000\r
+\r
+On Fri, 19 Aug 2011, James Vasile wrote:\r
+> On Fri, 19 Aug 2011 17:00:23 +0200, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+> > Hi James,\r
+> > \r
+> > On Fri, 19 Aug 2011, James Vasile wrote:\r
+> > > Display a maximum of 150 results when searching for messages.  This\r
+> > > prevents client lag when searches return thousands of results you'll\r
+> > > never look at\r
+> > \r
+> > I would not like this feature. If I search for something I really want\r
+> > to see everything. For example, if I want to remove inbox from many\r
+> > messages, I would search for them and press "-inbox<ret>". With your\r
+> > patch I'd not be sure whether there are some more messages or not.\r
+> \r
+> Ah, I do such things from the commandline, but you are right that there\r
+> is a good use for such.\r
+> \r
+> > \r
+> > > (use the Filter command to cut down results that exceed 150).\r
+> > \r
+> > You can start filtering while the previous search is still running, so I\r
+> > do not see problem with having bug number of results.\r
+> \r
+> Yes, you can filter while the search runs, but that's not the only\r
+> problem with huge search results.  On my system, I routinely do searches\r
+> that return 15000+ messages when I'm only interested in the first\r
+> several.  When I hit Q, Emacs annoyingly asks me for permission to kill\r
+> the buffer because it has a running process.  And emacs lags as it\r
+> processes all that data.\r
+\r
+Ahh, I almost forget about this. I use this patch to disable this.\r
+\r
+-Michal\r
+\r
+--8<---------------cut here---------------start------------->8---\r
+>From 0e0ae662026f4a17b882bb33140e0bb62e8da995 Mon Sep 17 00:00:00 2001\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+Date: Fri, 19 Aug 2011 17:58:40 +0200\r
+Subject: [PATCH] Do not query on notmuch-search exit\r
+\r
+Emacs 23.2 queries by default about killing existing processes. Disable\r
+this behavior for notmuch. I'm not sure whether this works with earlier\r
+versions.\r
+---\r
+ emacs/notmuch.el |    4 +++-\r
+ 1 files changed, 3 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 3d82f0d..8858f3e 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -858,7 +858,9 @@ The optional parameters are used as follows:\r
+                      "--sort=newest-first")\r
+                    query)))\r
+         (set-process-sentinel proc 'notmuch-search-process-sentinel)\r
+-        (set-process-filter proc 'notmuch-search-process-filter))))\r
++        (set-process-filter proc 'notmuch-search-process-filter)\r
++        (set-process-query-on-exit-flag proc nil)))\r
++      )\r
+     (run-hooks 'notmuch-search-hook)))\r
\r
+ (defun notmuch-search-refresh-view ()\r
+-- \r
+1.7.5.4\r
+\r
+--8<---------------cut here---------------end--------------->8---\r