mu4e: mu4e-contact-process-function: filter out no-reply addresses

Add a default mu4e-contact-process-function, filtering out various
no-reply addresses.
This commit is contained in:
Dirk-Jan C. Binnema 2020-10-18 12:54:52 +03:00
parent 3937b70f13
commit ca97d8c026
1 changed files with 4 additions and 1 deletions

View File

@ -448,7 +448,10 @@ their canonical counterpart; useful as an example."
(make-obsolete-variable 'mu4e-compose-complete-ignore-address-regexp
"mu4e-contact-process-function (see docstring)" "mu4e 1.3.2")
(defcustom mu4e-contact-process-function nil
(defcustom mu4e-contact-process-function
(lambda(addr) ;; filter-out no-reply addresses
(unless (string-match-p "no[t]?[-\\.]?repl\\(y\\|ies\\)" addr)
addr))
"Function for processing contact information for use in auto-completion.
The function receives the contact as a string, e.g