mu4e: fix logic in mu4e~process-contact

This commit is contained in:
djcb 2016-02-17 22:49:03 +02:00
parent 81c7786402
commit 91b622dc16
1 changed files with 1 additions and 1 deletions

View File

@ -656,7 +656,7 @@ or (rfc822-string . CONTACT) otherwise."
(let ((name (plist-get contact :name))
(mail (plist-get contact :mail))
(ignore-rx (or mu4e-compose-complete-ignore-address-regexp "")))
(unless (and mail (not (string-match ignore-rx mail)))
(when (and mail (not (string-match ignore-rx mail)))
(cons
(if name (format "%s <%s>" (mu4e~rfc822-quoteit name) mail) mail)
contact)))))