From 270bfcec0be6d72551f1cdacabf940e4141c67cd Mon Sep 17 00:00:00 2001 From: Yuri Subach Date: Thu, 24 Aug 2017 13:26:23 -0700 Subject: added senders search as an alternative ; more comments and links to docs --- docs/source/configuration/contacts_completion.rst | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/source/configuration/contacts_completion.rst b/docs/source/configuration/contacts_completion.rst index 9185424f..5f18831c 100644 --- a/docs/source/configuration/contacts_completion.rst +++ b/docs/source/configuration/contacts_completion.rst @@ -56,11 +56,12 @@ Both respect the `ignorecase` option which defaults to `True` and results in cas command = notmuch_abook.py lookup regexp = ^((?P[^(\\s+\<)]*)\s+<)?(?P[^@]+?@[^>]+)>?$ - `notmuch address` + `notmuch address `_ Since version `0.19`, notmuch itself offers a subcommand `address`, that returns email addresses found in the notmuch index. Combined with the `date:` syntax to query for mails within a certain - timeframe, this allows to search for all recently used contacts: + timeframe, this allows to search contacts that you've sent emails to + (output all addresses from the `To`, `Cc` and `Bcc` headers): .. code-block:: ini @@ -68,6 +69,15 @@ Both respect the `ignorecase` option which defaults to `True` and results in cas regexp = '\[?{"name": "(?P.*)", "address": "(?P.+)", "name-addr": ".*"}[,\]]?' shellcommand_external_filtering = False + If you want to search for senders in the `From` header (which should be + must faster according to `notmuch address docs + `_), then use the + following command: + + .. code-block:: ini + + command = 'notmuch address --format=json date:1Y..' + Don't hesitate to send me your custom `regexp` values to list them here. .. describe:: abook -- cgit v1.2.3