Hi Henkjan,
You could create a function for `mu4e-html2text-command' to do something
like that. That might however be a bit tricky... until now!
I've reworked the code a bit, so now (mu4e git), you can define a
function like this:
--8<---------------cut here---------------start------------->8---
(defun my-mu4e-html2text (msg)
"My html2text function; shows short message inline, show
long messages in some external browser (see `browse-url-generic-program')."
(let ((html (or (mu4e-message-field msg :body-html) "")))
(if (> (length html) 20000)
(progn
(mu4e-action-view-in-browser msg)
"[Viewing message in external browser]")
(mu4e-shr2text msg))))
(setq mu4e-html2text-command 'my-mu4e-html2text)
--8<---------------cut here---------------end--------------->8---
Not sure if that exactly does what you want, but should be a good
starting point.
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C