Mu4e: Handle no-name from case
As seen in https://www.djcbsoftware.nl/code/mu/mu4e/Message-functions.html, the name can be nil, but an address will still be present.
This commit is contained in:
parent
2307ae5644
commit
6af30b5d68
1 changed files with 3 additions and 2 deletions
|
@ -190,7 +190,8 @@ is tomorrow. With two prefixes, select the deadline."
|
||||||
(when (re-search-forward sec nil t)
|
(when (re-search-forward sec nil t)
|
||||||
(let (org-M-RET-may-split-line
|
(let (org-M-RET-may-split-line
|
||||||
(lev (org-outline-level))
|
(lev (org-outline-level))
|
||||||
(folded-p (invisible-p (point-at-eol))))
|
(folded-p (invisible-p (point-at-eol)))
|
||||||
|
(from (plist-get msg :from)))
|
||||||
;; place the subheader
|
;; place the subheader
|
||||||
(when folded-p (show-branches)) ; unfold if necessary
|
(when folded-p (show-branches)) ; unfold if necessary
|
||||||
(org-end-of-meta-data) ; skip property drawer
|
(org-end-of-meta-data) ; skip property drawer
|
||||||
|
@ -202,7 +203,7 @@ is tomorrow. With two prefixes, select the deadline."
|
||||||
"[[mu4e:msgid:"
|
"[[mu4e:msgid:"
|
||||||
(plist-get msg :message-id) "]["
|
(plist-get msg :message-id) "]["
|
||||||
(truncate-string-to-width
|
(truncate-string-to-width
|
||||||
(caar (plist-get msg :from)) 25 nil nil t)
|
(or (caar from) (cadr from)) 25 nil nil t)
|
||||||
" - "
|
" - "
|
||||||
(truncate-string-to-width
|
(truncate-string-to-width
|
||||||
(plist-get msg :subject) 40 nil nil t)
|
(plist-get msg :subject) 40 nil nil t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue