summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjcb <djcb@djcbsoftware.nl>2015-03-23 20:57:29 +0200
committerdjcb <djcb@djcbsoftware.nl>2015-03-23 20:57:29 +0200
commit646b06563f8ddfa877823e573b651639e91df802 (patch)
tree94758b3c7db311f95d0ec9840f5ac193445b5a49
parent910e41e2fe1c8241b73161f1114a5410a3b52ebd (diff)
mu4e: fix :thread-subject for the non-threaded casev0.9.12
-rw-r--r--mu4e/mu4e-headers.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el
index ec58212..b0dae9c 100644
--- a/mu4e/mu4e-headers.el
+++ b/mu4e/mu4e-headers.el
@@ -438,11 +438,11 @@ date. The formats used for date and time are
"Get the subject if it is the first one in a thread; otherwise,
return the thread-prefix without the subject-text. In other words,
show the subject of a thread only once, similar to e.g. 'mutt'."
- (let ((tinfo (mu4e-message-field msg :thread))
+ (let* ((tinfo (mu4e-message-field msg :thread))
(subj (mu4e-msg-field msg :subject)))
(concat ;; prefix subject with a thread indicator
(mu4e~headers-thread-prefix tinfo)
- (if (or (zerop (plist-get tinfo :level))
+ (if (or (not tinfo) (zerop (plist-get tinfo :level))
(plist-get tinfo :empty-parent))
(truncate-string-to-width subj 600) ""))))