forgot amending the commit :)

2018-09-17 Thread Vincent Breitmoser
Please disregard the previous message. I forgot to amend a change that uses a nonexistent query to speed up the call to notmuch count. ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] completion: load all addresses and cache in _email-notmuch

2018-09-17 Thread Vincent Breitmoser
This loads all known email addresses for completion, and caches the result. The cache validity is based on `notmuch count --lastmod mid:nonexistent`. --- completion/zsh/_email-notmuch | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/completion/zsh/_email-notmuch

[PATCH] completion: load all addresses and cache in _email-notmuch

2018-09-17 Thread Vincent Breitmoser
--- completion/zsh/_email-notmuch | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/completion/zsh/_email-notmuch b/completion/zsh/_email-notmuch index 291c2358..c6db00b6 100644 --- a/completion/zsh/_email-notmuch +++ b/completion/zsh/_email-notmuch @@ -2,8 +2,14 @@

Re: [PATCH 4/6] contrib/notmuch-mutt: add install target

2018-09-17 Thread Tomi Ollila
On Sun, Sep 16 2018, David Bremner wrote: > The main goal here is to be able to install the notmuch-mutt script > with an absolute shebang. I have tried to make the notmuch-mut Series looks pretty good to me... mut mut should probably be mutt ;D Also we probably don't care those who have

[PATCH] python: fix unchecked None access in get_property

2018-09-17 Thread Vincent Breitmoser
--- bindings/python/notmuch/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index d242097a..de0fb415 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@

Re: [PATCH 1/2] completion: more complete completion for zsh.

2018-09-17 Thread David Bremner
Vincent Breitmoser writes: > Ah, that's a bit annoying. > > What we could do is just stupidly load all addresses and work from there? On > my > machine, `notmuch address --deduplicate=address --output=address '*'` takes > 0.25 > seconds for a result set of 5500 addresses. > Here it's 1.9s for

Re: [PATCH 1/2] completion: more complete completion for zsh.

2018-09-17 Thread Vincent Breitmoser
Ah, that's a bit annoying. What we could do is just stupidly load all addresses and work from there? On my machine, `notmuch address --deduplicate=address --output=address '*'` takes 0.25 seconds for a result set of 5500 addresses. Could also put that result set in the zsh completion cache, for

Re: [PATCH 1/2] completion: more complete completion for zsh.

2018-09-17 Thread David Bremner
Vincent Breitmoser writes: > --- /dev/null > +++ b/completion/zsh/_email-notmuch > @@ -0,0 +1,9 @@ > +#autoload > + > +local expl > +local -a notmuch_addr > + > +notmuch_addr=( ${(f)"$(notmuch address --deduplicate=address > --output=address -- $PREFIX'*')"} ) > + > +_description notmuch-addr