[PATCH 2/3] Make the html handler configurable

Subject: [PATCH 2/3] Make the html handler configurable

Date: Wed, 23 Apr 2014 16:49:43 -0500

To: notmuch@notmuchmail.org

Cc: Paul Roberts

From: Felipe Contreras


From: Paul Roberts <pmr@stelo.org.uk>

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 vim/notmuch.vim | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index 25a16e9..0cb94f6 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -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
-- 
1.9.2+fc1.2.gfbaae8c


Thread: