[PATCH 1/5] Use notmuch-show-get-message-id in notmuch-show-get-bodypart-content.

Dmitry Kurochkin dmitry.kurochkin at gmail.com
Thu Jul 1 09:08:23 PDT 2010


---
 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



More information about the notmuch mailing list