aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Istvan Marko <notmuch@kismala.com>2013-08-16 13:24:23 -0700
committerGravatar David Bremner <bremner@debian.org>2013-09-10 08:05:31 -0300
commit654260420d3be14a4218c327a571fe56873f9abb (patch)
treea35f6e4adde5a6737832945eb55043fe9a8bf861 /emacs
parentee8305b519abe26f9a6cab5f67b782ddc95a7a7c (diff)
emacs: add buttons for all multipart/related parts
When text/html parts include images as multipart/related and the text/plain alternative is used these images can be completely hidden with no easy way to access them or even find out that they are there. Make notmuch-show-insert-part-multipart/related add buttons for all parts, the first one visible the rest hidden.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 32c971a8..61a8c4cb 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -588,6 +588,10 @@ message at DEPTH in the current thread."
;; Render the primary part.
(notmuch-show-insert-bodypart msg (car inner-parts) depth)
+ ;; Add hidden buttons for the rest
+ (mapc (lambda (inner-part)
+ (notmuch-show-insert-bodypart msg inner-part depth t))
+ (cdr inner-parts))
(when notmuch-show-indent-multipart
(indent-rigidly start (point) 1)))