aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-06-27 22:02:03 -0300
committerDavid Bremner <david@tethera.net>2022-07-14 11:48:30 -0400
commite580ce00580a86fbf2fb6d7630ce8bc30d7a8156 (patch)
tree581b0aaa0e8571000d525d38f75ee2b453dca304 /emacs
parent1d254bd35e0a4b816f70ff9babaf0f3681460423 (diff)
emacs/show: obey notmuch-show-max-text-part-size for part 0
This parameter was originally introduced to hide large attachements that happened to be text/plain. From a performance point of view, there is no reason not to also hide large message bodies.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-show.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index facb9cfe..426028a6 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1048,7 +1048,7 @@ is t, hide the part initially and show the button."
(beg (point))
;; This default header-p function omits the part button for
;; the first (or only) part if this is text/plain.
- (button (and (or deep
+ (button (and (or deep long
(funcall notmuch-show-insert-header-p-function part hide))
(notmuch-show-insert-part-header
nth mime-type