[ANN] New awesome vim plug-in using Ruby bindings
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 23 Apr 2012 01:12:32 +0000 (04:12 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:39 +0000 (09:46 -0800)
44/5a41f979738ba15ca9cd2be168a061b882fa73 [new file with mode: 0644]

diff --git a/44/5a41f979738ba15ca9cd2be168a061b882fa73 b/44/5a41f979738ba15ca9cd2be168a061b882fa73
new file mode 100644 (file)
index 0000000..3b1bb1a
--- /dev/null
@@ -0,0 +1,118 @@
+Return-Path: <felipe.contreras@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9E6CF431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 18:12:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id s0QVcfA7hYDw for <notmuch@notmuchmail.org>;\r
+       Sun, 22 Apr 2012 18:12:36 -0700 (PDT)\r
+Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
+ [74.125.83.53])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ C8D80431FAE   for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 18:12:35 -0700\r
+ (PDT)\r
+Received: by eekb47 with SMTP id b47so4674690eek.26\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 18:12:33 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=mime-version:date:message-id:subject:from:to:cc:content-type;\r
+       bh=np6CwUjIyos4BE5pSs0+NOVwQbm1Q0WbS8QbS2sPdDs=;\r
+       b=UQeH3A7FBI0RypWtkUkaKrt3yossg4ieyjb+jPCXG5TeJFnHLSATPpuZYtcSE4b91F\r
+       wj08bpx/QN/MfFnTkTZIJfwuQsyBNoFFiHYd7dAtkXSw7K1BxK5ccgWzZdQicK5TRuHv\r
+       IygTi0nPS5Vo6bNZg6ZA5778YpejdIiwh+sooAXSwrywOkhOnmQMVU+ReANFEWsMappQ\r
+       MFb5OWXk/u//CBX7j+QbhZaLC8CZttJC2/nXBT5ke9fldQMjucS0N0+wrIH55ZC64OZA\r
+       /wfiF8841UPc3Z98MfV/xoAJRReUVoDxzgr3om/Mq11Nx21naB7+kLcYXnkHDHVuwPUF\r
+       ytTg==\r
+MIME-Version: 1.0\r
+Received: by 10.213.32.2 with SMTP id a2mr1078672ebd.39.1335143552891; Sun, 22\r
+       Apr 2012 18:12:32 -0700 (PDT)\r
+Received: by 10.213.103.18 with HTTP; Sun, 22 Apr 2012 18:12:32 -0700 (PDT)\r
+Date: Mon, 23 Apr 2012 04:12:32 +0300\r
+Message-ID:\r
+ <CAMP44s3gNrDnsqpdiHJAhJOkM1SYKMUTNL2LUO4QEUCPiFZARA@mail.gmail.com>\r
+Subject: [ANN] New awesome vim plug-in using Ruby bindings\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\r
+Cc: Ali Polatel <alip@exherbo.org>, Bart Trojanowski <bart@jukie.net>,\r
+       Ryan Harper <rharper@shake.ath.cx>, Adrian Perez <aperez@igalia.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 23 Apr 2012 01:12:36 -0000\r
+\r
+Hi,\r
+\r
+I've never been particularly happy with the code of the vim plug-in,\r
+but it sort of did the job, after some fixes, and has been working\r
+great so far for most of my needs even though it's clearly very rough\r
+on the edges.\r
+\r
+However, I'm recently in need of been able to read HTML mails, and\r
+just trying to add that code was a nightmare, so I decided to look for\r
+alternatives, including Anton's Python vim plug-in (which is nice, but\r
+doesn't have support for that), and even learning emacs, to use what\r
+most people here use (but it turns out the HTML messages don't work\r
+correctly there either). I also tried the various mutt+notmuch\r
+options, and none fit the bill.\r
+\r
+So, since I'm a big fan of Ruby, I decided to try my luck writing a\r
+plug-in from scratch. It took me one weekend, but I'm pretty happy\r
+with the result. This plug-in has already essentially all the\r
+functionality of the current one, but it's much, *much* simpler (only\r
+600) lines of code.\r
+\r
+And in addition has many more features:\r
+\r
+ * Gradual searches; you don't have to wait for the whole search to finish,\r
+   sort of like the 'less' command\r
+ * Proper multi-part handling; finds out if there's text/plain, or if\r
+   text/html, converts it using elinks\r
+ * Extract all attachments\r
+ * Open message with mutt (or any external application that can open an mbox)\r
+ * More proper UTF-8 handling\r
+ * Configurable key mappings\r
+ * Much simpler, cleaner, beautiful, and extensible code (only 600 lines!)\r
+\r
+I just added support to reply mails today, and after trying a bit I\r
+got complaints from the vger.kernel.org server, but people using mutt\r
+have had the same complaint, so I don't know, I wouldn't reply totally\r
+on that. *But* you can open the mail with mutt, or any other client\r
+that you want, as a fall-back option (the command to run is\r
+configurable).\r
+\r
+Sure, it depends on the Ruby bindings from notmuch (but those are easy\r
+to compile), and on the 'mail' library from Ruby (easy to install),\r
+but it makes things much, *much* easier. There might be ways to make\r
+certain dependencies optional, and make this, and the current plug-in\r
+converge somehow (maybe even the python one too), but for now I don't\r
+see any reason to look back.\r
+\r
+I can't wait to start using it for real :)\r
+\r
+Enjoy ;)\r
+\r
+https://github.com/felipec/notmuch-vim-ruby\r
+\r
+P.S. I CC'ed a bunch of people that have showed interest in the vim\r
+interface, I hope you don't mind\r
+\r
+-- \r
+Felipe Contreras\r