Merge pull request #1198 from c-nixon/master

mu4e: Only require html2text if it will be used
This commit is contained in:
Dirk-Jan C. Binnema 2018-04-24 14:43:11 +03:00 committed by GitHub
commit eebe1c4c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -31,12 +31,13 @@
(require 'mu4e-utils)
(require 'cl)
(require 'html2text)
(require 'flow-fill)
(defcustom mu4e-html2text-command
(if (fboundp 'shr-insert-document) 'mu4e-shr2text 'html2text)
(if (fboundp 'shr-insert-document)
'mu4e-shr2text
(progn (require 'html2text) 'html2text))
"Either a shell command or a function that converts from html to plain text.