mu4e-headers: fallback to :subject for :thread-subject
If we're not showing threads, use the normal subject. Fixes #2341.
This commit is contained in:
@ -600,7 +600,10 @@ found."
|
|||||||
;; work-around: emacs' display gets really slow when lines are too long;
|
;; work-around: emacs' display gets really slow when lines are too long;
|
||||||
;; so limit subject length to 600
|
;; so limit subject length to 600
|
||||||
(truncate-string-to-width val 600)))
|
(truncate-string-to-width val 600)))
|
||||||
(:thread-subject (mu4e~headers-thread-subject msg))
|
(:thread-subject ;; if not searching threads, fall back to :subject
|
||||||
|
(if mu4e-search-threads
|
||||||
|
(mu4e~headers-thread-subject msg)
|
||||||
|
(mu4e~headers-field-value msg :subject)))
|
||||||
((:maildir :path :message-id) val)
|
((:maildir :path :message-id) val)
|
||||||
((:to :from :cc :bcc) (mu4e~headers-contact-str val))
|
((:to :from :cc :bcc) (mu4e~headers-contact-str val))
|
||||||
;; if we (ie. `user-mail-address' is the 'From', show
|
;; if we (ie. `user-mail-address' is the 'From', show
|
||||||
|
|||||||
Reference in New Issue
Block a user