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

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

Date: Sat, 17 Jan 2015 14:57:11 +0100

To: Michal Sojka, notmuch@notmuchmail.org

Cc:

From: David Bremner


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


Thread: