* mu4e.el: fix washing messages

This commit is contained in:
djcb 2011-12-22 00:42:05 +02:00
parent 4af04b7038
commit 41d0ac82d7
1 changed files with 3 additions and 8 deletions

View File

@ -529,9 +529,10 @@ uses the emacs built-in `html2text'. Alternatively, if
(if (or (not txt) (< (* 10 (length txt)) (length html)))
;; there's no text part, or it's very small
(with-temp-buffer
(insert html)
(insert html)
(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)
;; otherwise...
(html2text))
@ -541,12 +542,6 @@ uses the emacs built-in `html2text'. Alternatively, if
;; and finally, remove some crap from the remaining string.
(replace-regexp-in-string "[  ]" " " body nil nil nil)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(provide 'mu4e)