emacs: Document notmuch-show-get-message-properties

This commit is contained in:
Daniel Schoepe 2011-07-08 20:46:55 +02:00 committed by David Bremner
parent 430fb27b3e
commit 3f02ba3406

View file

@ -1053,6 +1053,12 @@ All currently available key bindings:
(put-text-property (point) (+ (point) 1) :notmuch-message-properties props)))
(defun notmuch-show-get-message-properties ()
"Return the properties of the current message as a plist.
Some useful entries are:
:headers - Property list containing the headers :Date, :Subject, :From, etc.
:body - Body of the message
:tags - Tags for this message"
(save-excursion
(notmuch-show-move-to-message-top)
(get-text-property (point) :notmuch-message-properties)))