mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: Document notmuch-show-get-message-properties
This commit is contained in:
parent
430fb27b3e
commit
3f02ba3406
1 changed files with 6 additions and 0 deletions
|
@ -1053,6 +1053,12 @@ All currently available key bindings:
|
||||||
(put-text-property (point) (+ (point) 1) :notmuch-message-properties props)))
|
(put-text-property (point) (+ (point) 1) :notmuch-message-properties props)))
|
||||||
|
|
||||||
(defun notmuch-show-get-message-properties ()
|
(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
|
(save-excursion
|
||||||
(notmuch-show-move-to-message-top)
|
(notmuch-show-move-to-message-top)
|
||||||
(get-text-property (point) :notmuch-message-properties)))
|
(get-text-property (point) :notmuch-message-properties)))
|
||||||
|
|
Loading…
Reference in a new issue