diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2024-12-06 19:47:55 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2024-12-06 19:47:55 +0200 |
| commit | 454cfe3ea68d115f2e182d50a44388d281ecefac (patch) | |
| tree | 549ec1dd8b52b7bf4ea3391e086b294e0e96b6ce /mu4e | |
| parent | 1b2d9d3847ca879e92455d06b433a212506a16f8 (diff) | |
mu4e: add mu4e-view-mime-parts
Add a special mode for setting the gnus parameters to have images shown
/ buttonized so they can be saved etc.
Fixes #2516.
Diffstat (limited to 'mu4e')
| -rw-r--r-- | mu4e/mu4e-view.el | 17 | ||||
| -rw-r--r-- | mu4e/mu4e.texi | 4 |
2 files changed, 16 insertions, 5 deletions
diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 075c558..4f719d3 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -754,12 +754,19 @@ determine which browser function to use." (mu4e-view-quit) (mu4e-view msg))) -(defun mu4e-view-toggle-show-mime-parts() - "Toggle whether to show all MIME-parts." +(defun mu4e-view-show-mime-parts() + "Show all MIME-parts. + +This can be useful for messages with embedded images etc. that +you want to save, and that are not accessible otherwise. However, +note that Emacs can get slow with big attached images. + +To go back to normal display, quit the message and re-open." (interactive) - (setq gnus-inhibit-mime-unbuttonizing - (not gnus-inhibit-mime-unbuttonizing)) - (mu4e-view-refresh)) + (let* ((toggle (not gnus-mime-display-multipart-as-mixed)) + (gnus-inhibit-mime-unbuttonizing (not toggle)) + (gnus-mime-display-multipart-as-mixed toggle)) + (mu4e-view-refresh))) (defun mu4e-view-toggle-fill-flowed() "Toggle flowed-message text filling." diff --git a/mu4e/mu4e.texi b/mu4e/mu4e.texi index d39eadd..2466a32 100644 --- a/mu4e/mu4e.texi +++ b/mu4e/mu4e.texi @@ -1506,6 +1506,10 @@ if you have Gnus-specific settings for @t{gnus-blocked-images}, you should verify that they have the desired effect in @code{mu4e} as well. +Finally, for some message with big images it can be useful to enable buttons and +full display, e.g. for saving inline images. For this you can try @code{M-x +mu4e-view-show-mime-parts}. This can be a little slow. + @node MSGV Attachments and MIME-parts @section Attachments and MIME-parts @cindex attachments |
