[PATCH] Limit reverse searches to 100 threads.

classic Classic list List threaded Threaded
1 message Options
Keith Packard Keith Packard
Reply | Threaded
Open this post in threaded view
|

[PATCH] Limit reverse searches to 100 threads.

Yes, this is a lame default, but it serves my purposes.

Signed-off-by: Keith Packard <[hidden email]>
---
 notmuch.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 4498200..91ed073 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -945,7 +945,7 @@ This function advances point to the next line when finished."
       (save-excursion
  (if oldest-first
     (call-process "notmuch" nil t nil "search" query)
-  (call-process "notmuch" nil t nil "search" "--reverse" query))
+  (call-process "notmuch" nil t nil "search" "--max-threads=100" "--reverse" query))
  (notmuch-search-markup-thread-ids)
  ))))
 
--
1.6.5.2