--- emacs/notmuch-show.el | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 84c6cd6..a845efc 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -349,7 +349,7 @@ current buffer, if possible." (defun notmuch-show-get-bodypart-content (msg part nth) (or (plist-get part :content) - (notmuch-show-get-bodypart-internal (concat "id:" (plist-get msg :id)) nth))) + (notmuch-show-get-bodypart-internal (notmuch-show-get-message-id msg) nth))) ;; @@ -728,9 +728,9 @@ All currently available key bindings: (notmuch-show-get-message-properties)))) (plist-get props prop))) -(defun notmuch-show-get-message-id () +(defun notmuch-show-get-message-id (&optional props) "Return the message id of the current message." - (concat "id:" (notmuch-show-get-prop :id))) + (concat "id:" (notmuch-show-get-prop :id props))) ;; dme: Would it make sense to use a macro for many of these? -- 1.7.1 _______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch