mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
ee8305b519
commit
654260420d
1 changed files with 4 additions and 0 deletions
|
@ -588,6 +588,10 @@ message at DEPTH in the current thread."
|
||||||
|
|
||||||
;; Render the primary part.
|
;; Render the primary part.
|
||||||
(notmuch-show-insert-bodypart msg (car inner-parts) depth)
|
(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
|
(when notmuch-show-indent-multipart
|
||||||
(indent-rigidly start (point) 1)))
|
(indent-rigidly start (point) 1)))
|
||||||
|
|
Loading…
Reference in a new issue