mu4e: added action to show the current thread only

Add an action for view and headers buffer to show only the messages in
the current thread.
This commit is contained in:
Dima Kogan
2015-11-06 21:36:31 -08:00
committed by djcb
parent 66a082a6ad
commit 781f0782f5
3 changed files with 15 additions and 3 deletions

View File

@ -268,6 +268,16 @@ store your org-contacts."
(mu4e-message (concat "tagging: " (mapconcat 'identity taglist ", ")))
(mu4e-refresh-message path maildir)))
(defun mu4e-action-show-thread (msg)
"Show all messages that are in the same thread as the message
at point."
(let ((msgid (mu4e-message-field msg :message-id)))
(when msgid
(let ((mu4e-headers-show-threads t)
(mu4e-headers-include-related t))
(mu4e-headers-search
(format "msgid:%s" msgid))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;