]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
notmuch show: Properly nest MIME parts within mulipart parts
[notmuch] / emacs / notmuch-show.el
index f3150af520912376419b9fb8db7a59a6d97797af..9f045d7d2fdb26d5fdb9f4293d094c93644d5363 100644 (file)
@@ -280,6 +280,15 @@ current buffer, if possible."
              t)
          nil)))))
 
+(defun notmuch-show-insert-part-multipart/* (msg part content-type nth depth declared-type)
+  (let ((inner-parts (plist-get part :content)))
+    (notmuch-show-insert-part-header nth declared-type content-type nil)
+    ;; Show all of the parts.
+    (mapc (lambda (inner-part)
+           (notmuch-show-insert-bodypart msg inner-part depth))
+         inner-parts))
+  t)
+
 (defun notmuch-show-insert-part-text/plain (msg part content-type nth depth declared-type)
   (let ((start (point)))
     ;; If this text/plain part is not the first part in the message,