Missing inlined message/rfc822 bodies?

Subject: Missing inlined message/rfc822 bodies?

Date: Mon, 18 Jul 2011 01:06:05 -0700

To: notmuch@notmuchmail.org

Cc:

From: Keith Packard


I wasn't seeing anything for an inlined message/rfc822 part (as with a
forwarded email message) and discovered that for some reason, the
message structure wasn't as expected. The following patch appears to
help me.

I'm still stuck trying to use the 'v' key to display attachments from
forwarded messages; it looks like mm-dissect-buffer isn't digging into
the attached message and pulling the embedded attachments out or something.

However, I can at least view the message and save the attachments now.

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index f96743b..402fb2c 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -519,6 +519,12 @@ current buffer, if possible."
     ;; message display.
     (insert "\n")
 
+    ;;
+    ;; I dunno, sometimes the message part is a single element list containing the plist
+    ;;
+    (if (not inner-parts)
+      (setq inner-parts (plist-get (car message-part) :content)))
+
     ;; Show all of the parts.
     (mapc (lambda (inner-part)
 	    (notmuch-show-insert-bodypart msg inner-part depth))


-- 
keith.packard@intel.com
part-000.sig (application/pgp-signature)

Thread: