Merge pull request #1818 from wavexx/headers_fix_nil_addr
Check for nil before calling mu4e-user-mail-address-p
This commit is contained in:
@ -608,7 +608,7 @@ cdr element the To: prefix.")
|
|||||||
otherwise ; show the from address; prefixed with the appropriate
|
otherwise ; show the from address; prefixed with the appropriate
|
||||||
`mu4e-headers-from-or-to-prefix'."
|
`mu4e-headers-from-or-to-prefix'."
|
||||||
(let ((addr (cdr-safe (car-safe (mu4e-message-field msg :from)))))
|
(let ((addr (cdr-safe (car-safe (mu4e-message-field msg :from)))))
|
||||||
(if (mu4e-user-mail-address-p addr)
|
(if (and addr (mu4e-user-mail-address-p addr))
|
||||||
(concat (cdr mu4e-headers-from-or-to-prefix)
|
(concat (cdr mu4e-headers-from-or-to-prefix)
|
||||||
(mu4e~headers-contact-str (mu4e-message-field msg :to)))
|
(mu4e~headers-contact-str (mu4e-message-field msg :to)))
|
||||||
(concat (car mu4e-headers-from-or-to-prefix)
|
(concat (car mu4e-headers-from-or-to-prefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user