pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
696 stars 164 forks source link

notmuch-addrlookup #1551

Closed atrent closed 3 years ago

atrent commented 3 years ago

This "issue" is just my way of dropping a couple of lines to support 'notmuch-addrlookup' (much faster than 'notmuch address' when just searching for email addresses). I'm referring to page https://alot.readthedocs.io/en/latest/configuration/contacts_completion.html

Use:

          command = 'notmuch-addrlookup '
          regexp = '(?P<name>.*).*<(?P<email>.+)>'

in the '[[[abook]]]' section of '[[youraccount]]'

pazz commented 3 years ago

nice. Can you just send a PR do add this to the docs? Cheers

lucc commented 3 years ago

Or you can add it to the wiki. I just started a page for this :) https://github.com/pazz/alot/wiki/Address-Book-Examples

lucc commented 3 years ago

But we could also collect a table of programs and regexes that are known to work in the official docs!

atrent commented 3 years ago

I'm not very familiar to the github web interface but I think I've created the PR, feel free to edit it of course. Otherwise I can fill the wiki page @lucc mentioned. Let me know.

pazz commented 3 years ago

Thanks. I think we can include this as is. I would not mind moving all regexps for those tools from the sphinx docs into the wiki but for now, for consistency's sake we should treat them all the same..

lucc commented 3 years ago

I did not remember the long list in the docs and only now saw the comment there asking for more. I think the best would be to keep that in the docs. If it gets to much we can turn it into a table.