X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=371e62df95bd9d30b7020768ca6215122dd474d7;hb=9f8b2091c818d3e81e028d3bf060ff2c95134333;hp=2a81ec1fe072fa76d138c85fa7a28e57306be365;hpb=adefa734e3de8e05713205e686403be4f2236711;p=notmuch diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 2a81ec1f..371e62df 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -954,6 +954,16 @@ this part.") (defun notmuch-show-reply-insert-header-p-never (part hide) nil) +(defun notmuch-show-reply-insert-header-p-trimmed (part hide) + (let ((mime-type (notmuch-show-mime-type part))) + (and (not (notmuch-match-content-type mime-type "multipart/*")) + (not hide)))) + +(defun notmuch-show-reply-insert-header-p-minimal (part hide) + (let ((mime-type (notmuch-show-mime-type part))) + (and (notmuch-match-content-type mime-type "text/*") + (not hide)))) + (defun notmuch-show-insert-bodypart (msg part depth &optional hide) "Insert the body part PART at depth DEPTH in the current thread.