* cosmetic
This commit is contained in:
@ -557,17 +557,15 @@ This is used by the completion function in mu4e-compose."
|
|||||||
(let ((lst))
|
(let ((lst))
|
||||||
(dolist (contact contacts)
|
(dolist (contact contacts)
|
||||||
(let ((name (plist-get contact :name))
|
(let ((name (plist-get contact :name))
|
||||||
(mail (plist-get contact :mail)))
|
|
||||||
(mail (plist-get contact :mail)))
|
(mail (plist-get contact :mail)))
|
||||||
(when mail
|
(when mail
|
||||||
(unless ;; ignore some address ('noreply' etc.)
|
(unless ;; ignore some address ('noreply' etc.)
|
||||||
(and mu4e-compose-complete-ignore-address-regexp
|
(and mu4e-compose-complete-ignore-address-regexp
|
||||||
(string-match mu4e-compose-complete-ignore-address-regexp mail))
|
(string-match mu4e-compose-complete-ignore-address-regexp mail))
|
||||||
(add-to-list 'lst
|
(add-to-list 'lst
|
||||||
(if name
|
|
||||||
(format "%s <%s>" name mail)
|
|
||||||
(if name (format "%s <%s>" name mail) mail))))))
|
(if name (format "%s <%s>" name mail) mail))))))
|
||||||
(setq mu4e~contacts-for-completion lst)
|
(setq mu4e~contacts-for-completion lst)
|
||||||
|
(mu4e-message "Contacts received: %d"
|
||||||
(length mu4e~contacts-for-completion))))
|
(length mu4e~contacts-for-completion))))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user