* mu4e.el: fix washing messages
This commit is contained in:
@ -529,9 +529,10 @@ uses the emacs built-in `html2text'. Alternatively, if
|
|||||||
(if (or (not txt) (< (* 10 (length txt)) (length html)))
|
(if (or (not txt) (< (* 10 (length txt)) (length html)))
|
||||||
;; there's no text part, or it's very small
|
;; there's no text part, or it's very small
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert html)
|
(insert html)
|
||||||
(if mu4e-html2text-command ;; if defined, use the external tool
|
(if mu4e-html2text-command ;; if defined, use the external tool
|
||||||
(shell-command-on-region (point-min) (point-max) mu4e-html2text-command
|
(shell-command-on-region (point-min) (point-max)
|
||||||
|
mu4e-html2text-command
|
||||||
nil t)
|
nil t)
|
||||||
;; otherwise...
|
;; otherwise...
|
||||||
(html2text))
|
(html2text))
|
||||||
@ -541,12 +542,6 @@ uses the emacs built-in `html2text'. Alternatively, if
|
|||||||
;; and finally, remove some crap from the remaining string.
|
;; and finally, remove some crap from the remaining string.
|
||||||
(replace-regexp-in-string "[
|
(replace-regexp-in-string "[
|
||||||
]" " " body nil nil nil)))
|
]" " " body nil nil nil)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user