[PATCH] emacs: convert notmuch-address-harvester to use notmuch-address

David Bremner david at tethera.net
Sat Jan 17 05:57:11 PST 2015


No attempt is made to optimize anything here, just drop in the
new command.
---
In a few subjective tests, this seems quite a bit faster than
the version based on notmuch-show

emacs/notmuch-address.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
index 9f6711b..de0b991 100644
--- a/emacs/notmuch-address.el
+++ b/emacs/notmuch-address.el
@@ -188,8 +188,8 @@ called when harvesting finishes."
 	 (query (if filter-query
 		    (format "(%s) and (%s)" from-me-query filter-query)
 		  from-me-query))
-	 (args `("show" "--format=sexp" "--format-version=2"
-		 "--body=false" "--entire-thread=false" ,query)))
+	 (args `("address" "--format=sexp" "--format-version=2"
+		 ,query)))
     (if synchronous
 	(notmuch-query-map-threads 'notmuch-address-harvest-msg
 				   (apply 'notmuch-call-notmuch-sexp args))
-- 
2.1.4



More information about the notmuch mailing list