* 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
1 changed files with 1 additions and 1 deletions

View File

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