vim: make the html handler configurable

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Paul Roberts 2014-05-01 17:57:53 -05:00 committed by David Bremner
parent 2fee62fd1f
commit 468deca60c

View file

@ -919,7 +919,8 @@ ruby << EOF
if mime_type != "text/html"
text = decoded
else
IO.popen("elinks --dump", "w+") do |pipe|
IO.popen(VIM::evaluate('exists("g:notmuch_html_converter") ? ' +
'g:notmuch_html_converter : "elinks --dump"'), "w+") do |pipe|
pipe.write(decode_body)
pipe.close_write
text = pipe.read