[WIP PATCH] emacs: query: completion for from: in searches

Jameson Graef Rollins jrollins at finestructure.net
Fri Aug 12 16:29:38 PDT 2016


On Fri, Aug 12 2016, Mark Walters <markwalters1009 at gmail.com> wrote:
> This is a first attempt at tab completion for from: searches
> ---
>
> This sort of works (well it works but maybe in unexpected ways!)
>
> At the moment it completes to any word (as delimited by whitespace) in
> any address stored in the address hashmap. It does not trigger the
> address harvesting itself -- you either need to call
> notmuch-address-harvest-trigger manually, or use address completion
> when sending a mail first, and the harvest needs to finish before this
> will work.
>
> Since the hashmap does some address deduplication this will not give
> perfect completion (there may be names in your database it won't
> complete to). Also completion is case-sensitive.
>
> Getting a perfect solution may be more effort than its worth -- this
> will probably demonstrate whether something like this suffices.

Mark, this patch is awesome.  Really, it works great and is incredibly
useful.  With it I am able to trivially find emails that have
traditionally been very difficult for me to retrieve because the sender
addresses are obscure, e.g. I've only been able to remember a couple
starting characters.

This is on par with the tag: completion for usefulness.  It would be
great to extend this to to: completion as well.

+2

Thanks so much, Mark.

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20160812/fe84af90/attachment.sig>


More information about the notmuch mailing list