From 0733feb26a1b9d2aacd9acde2a94d514e0073a3b Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 10 Mar 2012 12:44:20 +0200 Subject: [PATCH] * mu4e.el: don't show 'no body' --- emacs/mu4e.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/mu4e.el b/emacs/mu4e.el index 997637b6..54936eec 100644 --- a/emacs/mu4e.el +++ b/emacs/mu4e.el @@ -604,7 +604,7 @@ Also see `mu/flags-to-string'. (t (propertize "?" 'face 'mu4e-system-face)))) -(defun mu4e-body-text (msg) +(defun mu4e-body-text (msg &option) "Get the body in text form for this message, which is either :body-txt, or if not available, :body-html converted to text. By default, it uses the emacs built-in `html2text'. Alternatively, if @@ -635,7 +635,7 @@ function prefers the text part, but this can be changed by setting (buffer-string))))) ;; still no body? (unless body - (setq body (propertize "No body" 'face 'mu4e-system-face))) + (setq body "")) ;; and finally, remove some crap from the remaining string. (replace-regexp-in-string "[  ]" " " body nil nil nil)))