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 2755B431FAF for ; Mon, 23 Apr 2012 05:05:07 -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 RXJ7IxXW5Fro for ; Mon, 23 Apr 2012 05:05:06 -0700 (PDT) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 31475431FAE for ; Mon, 23 Apr 2012 05:05:06 -0700 (PDT) Received: by eaa1 with SMTP id 1so4833023eaa.26 for ; Mon, 23 Apr 2012 05:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=+ArjKVup8hOEjCCuqVjT59UpFiDXY9a4MosUqldUNYo=; b=NIb30Bz6UlpCbFPaT+rsQi6cCCMeRveKZrebTIHm0VhzVcBMKYfmHpylCyBrIFOeTM GPgqbLYIawhgLsXCQH3uG2qL+EhCA0yqWL1JaMKt0InAm+fdWT/EhZrnLp+Qr8MidvYL ipzsS3zUDJc5NRzH0SFiDgrh/vfhjt4nJRMa58AR14gpqz4n7tPZWvNfbe5S6GYL+QOT crg3AxDZR3CB0ixIEdRe9RkRlQvpu8db/gNsmgJaodI4Y6JIqSRBEWrYcQHibmlG54Yf ZC/ngHoppqd0nHDOZtH815BmmDv6vruzaSKLtob+J+d+Xb6Gkhx5qXmmdDk/3gaPyCGO HyuQ== MIME-Version: 1.0 Received: by 10.213.9.209 with SMTP id m17mr1242787ebm.19.1335182704670; Mon, 23 Apr 2012 05:05:04 -0700 (PDT) Received: by 10.213.103.18 with HTTP; Mon, 23 Apr 2012 05:05:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 23 Apr 2012 15:05:04 +0300 Message-ID: Subject: Re: [ANN] New awesome vim plug-in using Ruby bindings From: Felipe Contreras To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Ali Polatel , Bart Trojanowski , Adrian Perez 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: Mon, 23 Apr 2012 12:05:07 -0000 Hi, If you reply to all, remove Ryan Harper, as the address doesn't work. Or just reply here. Cheers. 2012/4/23 Felipe Contreras : > I've never been particularly happy with the code of the vim plug-in, > but it sort of did the job, after some fixes, and has been working > great so far for most of my needs even though it's clearly very rough > on the edges. > > However, I'm recently in need of been able to read HTML mails, and > just trying to add that code was a nightmare, so I decided to look for > alternatives, including Anton's Python vim plug-in (which is nice, but > doesn't have support for that), and even learning emacs, to use what > most people here use (but it turns out the HTML messages don't work > correctly there either). I also tried the various mutt+notmuch > options, and none fit the bill. > > So, since I'm a big fan of Ruby, I decided to try my luck writing a > plug-in from scratch. It took me one weekend, but I'm pretty happy > with the result. This plug-in has already essentially all the > functionality of the current one, but it's much, *much* simpler (only > 600) lines of code. > > And in addition has many more features: > > =C2=A0* Gradual searches; you don't have to wait for the whole search to = finish, > =C2=A0 sort of like the 'less' command > =C2=A0* Proper multi-part handling; finds out if there's text/plain, or i= f > =C2=A0 text/html, converts it using elinks > =C2=A0* Extract all attachments > =C2=A0* Open message with mutt (or any external application that can open= an mbox) > =C2=A0* More proper UTF-8 handling > =C2=A0* Configurable key mappings > =C2=A0* Much simpler, cleaner, beautiful, and extensible code (only 600 l= ines!) > > I just added support to reply mails today, and after trying a bit I > got complaints from the vger.kernel.org server, but people using mutt > have had the same complaint, so I don't know, I wouldn't reply totally > on that. *But* you can open the mail with mutt, or any other client > that you want, as a fall-back option (the command to run is > configurable). > > Sure, it depends on the Ruby bindings from notmuch (but those are easy > to compile), and on the 'mail' library from Ruby (easy to install), > but it makes things much, *much* easier. There might be ways to make > certain dependencies optional, and make this, and the current plug-in > converge somehow (maybe even the python one too), but for now I don't > see any reason to look back. > > I can't wait to start using it for real :) > > Enjoy ;) > > https://github.com/felipec/notmuch-vim-ruby > > P.S. I CC'ed a bunch of people that have showed interest in the vim > interface, I hope you don't mind --=20 Felipe Contreras