Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CBD47429E27 for ; Thu, 1 May 2014 16:08:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32oIkjLM0cnJ for ; Thu, 1 May 2014 16:08:49 -0700 (PDT) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 870BF431FBD for ; Thu, 1 May 2014 16:08:41 -0700 (PDT) Received: by mail-oa0-f51.google.com with SMTP id l6so4312234oag.38 for ; Thu, 01 May 2014 16:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hdork2vFSZPvSyHiLKyIBjLzvoJKqPtyzcA+xOQOrAU=; b=wUcptpoeZuHIJNDQfEmtgR2Yx07Se7tsrrml45ifPDHZzvDUmAzF35ml5uPB0HJWSX igrbLFxnBrKUd94mW5wnRCY9U8yh28rkTCdWnQYAFR0go+A+2/kz2nbtYHE9/sGPc0LB 6R9dUfa5MS4WZz6/fYYDuRf3u7kbVZ3qViFYoFSmsAkMdO0fEAt+ECf7aVNrIVmvEqEg Fk676sUiKKsbHblKdy1Jf7151hFtLlHXBUFtXrvo1pCDgFDEIMKxxlHD4pgTqBCDDq49 hOPTMKdNXYzk6MTUqJi2SIiQDszr+oL2D8iM7d8v4GgQ3jqxnOIQNS6Cm0yqZhl53vK0 sPNg== X-Received: by 10.60.144.200 with SMTP id so8mr13432649oeb.31.1398985721135; Thu, 01 May 2014 16:08:41 -0700 (PDT) Received: from localhost (189-211-224-40.static.axtel.net. [189.211.224.40]) by mx.google.com with ESMTPSA id ut8sm62420203obc.22.2014.05.01.16.08.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 May 2014 16:08:40 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH v2 2/3] vim: make the html handler configurable Date: Thu, 1 May 2014 17:57:53 -0500 Message-Id: <1398985074-17646-3-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.9.2+fc1.19.g85b6256 In-Reply-To: <1398985074-17646-1-git-send-email-felipe.contreras@gmail.com> References: <1398985074-17646-1-git-send-email-felipe.contreras@gmail.com> Cc: Paul Roberts X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2014 23:08:58 -0000 From: Paul Roberts Signed-off-by: Felipe Contreras --- 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.19.g85b6256