* mu4e-utils: quote names when autocompleting addresses

This commit is contained in:
djcb
2012-08-07 12:08:44 +03:00
parent d7dabca0b6
commit 849cc79636

View File

@ -580,7 +580,7 @@ This is used by the completion function in mu4e-compose."
(unless ;; ignore some address ('noreply' etc.)
(and mu4e-compose-complete-ignore-address-regexp
(string-match mu4e-compose-complete-ignore-address-regexp mail))
(add-to-list 'lst
(add-to-list 'lst
(if name (format "\"%s\" <%s>" name mail) mail))))))
(setq mu4e~contacts-for-completion lst)
(mu4e-message "Contacts received: %d"