aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch-company.el
diff options
context:
space:
mode:
authorMark Walters <markwalters1009@gmail.com>2016-05-20 21:13:02 +0100
committerDavid Bremner <david@tethera.net>2016-09-04 08:07:46 -0300
commit2cf0ef3998a75a8e5bcd83f0a286d9660f1bdb0e (patch)
tree0c7ddaf75f093cc56e079d807fd7307956ebec80 /emacs/notmuch-company.el
parent7352cadb4f2e48890a6692b5ac6783cce0e50808 (diff)
emacs: address completion, allow sender/recipient and filters
This commit lets the user customize the address completion. It makes two changes. The first change controls whether to build the address completion list based on messages you have sent or you have received (the latter is much faster). The second change add a possible filter query to limit the messages used -- for example, setting this to date:1y.. would limit the address completions to addresses used in the last year. This speeds up the address harvest and may also make the search less cluttered as old addresses may well no longer be valid.
Diffstat (limited to 'emacs/notmuch-company.el')
-rw-r--r--emacs/notmuch-company.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-company.el b/emacs/notmuch-company.el
index 0619c7ef..610e223d 100644
--- a/emacs/notmuch-company.el
+++ b/emacs/notmuch-company.el
@@ -72,7 +72,7 @@
(lambda (callback)
;; First run quick asynchronous harvest based on what the user entered so far
(notmuch-address-harvest
- (format "to:%s*" arg) nil
+ arg nil
(lambda (_proc _event)
(funcall callback (notmuch-address-matching arg))
;; Then start the (potentially long-running) full asynchronous harvest if necessary