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

David Edmondson dme at dme.org
Mon Jan 19 01:22:08 PST 2015


On Sat, Jan 17 2015, David Bremner wrote:
> 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

The changes look fine to me.

> 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