Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 44 / 5a41f979738ba15ca9cd2be168a061b882fa73
1 Return-Path: <felipe.contreras@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 9E6CF431FAF\r
6         for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 18:12:36 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id s0QVcfA7hYDw for <notmuch@notmuchmail.org>;\r
17         Sun, 22 Apr 2012 18:12:36 -0700 (PDT)\r
18 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
19  [74.125.83.53])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  C8D80431FAE    for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 18:12:35 -0700\r
22  (PDT)\r
23 Received: by eekb47 with SMTP id b47so4674690eek.26\r
24         for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 18:12:33 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=mime-version:date:message-id:subject:from:to:cc:content-type;\r
27         bh=np6CwUjIyos4BE5pSs0+NOVwQbm1Q0WbS8QbS2sPdDs=;\r
28         b=UQeH3A7FBI0RypWtkUkaKrt3yossg4ieyjb+jPCXG5TeJFnHLSATPpuZYtcSE4b91F\r
29         wj08bpx/QN/MfFnTkTZIJfwuQsyBNoFFiHYd7dAtkXSw7K1BxK5ccgWzZdQicK5TRuHv\r
30         IygTi0nPS5Vo6bNZg6ZA5778YpejdIiwh+sooAXSwrywOkhOnmQMVU+ReANFEWsMappQ\r
31         MFb5OWXk/u//CBX7j+QbhZaLC8CZttJC2/nXBT5ke9fldQMjucS0N0+wrIH55ZC64OZA\r
32         /wfiF8841UPc3Z98MfV/xoAJRReUVoDxzgr3om/Mq11Nx21naB7+kLcYXnkHDHVuwPUF\r
33         ytTg==\r
34 MIME-Version: 1.0\r
35 Received: by 10.213.32.2 with SMTP id a2mr1078672ebd.39.1335143552891; Sun, 22\r
36         Apr 2012 18:12:32 -0700 (PDT)\r
37 Received: by 10.213.103.18 with HTTP; Sun, 22 Apr 2012 18:12:32 -0700 (PDT)\r
38 Date: Mon, 23 Apr 2012 04:12:32 +0300\r
39 Message-ID:\r
40  <CAMP44s3gNrDnsqpdiHJAhJOkM1SYKMUTNL2LUO4QEUCPiFZARA@mail.gmail.com>\r
41 Subject: [ANN] New awesome vim plug-in using Ruby bindings\r
42 From: Felipe Contreras <felipe.contreras@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Content-Type: text/plain; charset=UTF-8\r
45 Cc: Ali Polatel <alip@exherbo.org>, Bart Trojanowski <bart@jukie.net>,\r
46         Ryan Harper <rharper@shake.ath.cx>, Adrian Perez <aperez@igalia.com>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 23 Apr 2012 01:12:36 -0000\r
60 \r
61 Hi,\r
62 \r
63 I've never been particularly happy with the code of the vim plug-in,\r
64 but it sort of did the job, after some fixes, and has been working\r
65 great so far for most of my needs even though it's clearly very rough\r
66 on the edges.\r
67 \r
68 However, I'm recently in need of been able to read HTML mails, and\r
69 just trying to add that code was a nightmare, so I decided to look for\r
70 alternatives, including Anton's Python vim plug-in (which is nice, but\r
71 doesn't have support for that), and even learning emacs, to use what\r
72 most people here use (but it turns out the HTML messages don't work\r
73 correctly there either). I also tried the various mutt+notmuch\r
74 options, and none fit the bill.\r
75 \r
76 So, since I'm a big fan of Ruby, I decided to try my luck writing a\r
77 plug-in from scratch. It took me one weekend, but I'm pretty happy\r
78 with the result. This plug-in has already essentially all the\r
79 functionality of the current one, but it's much, *much* simpler (only\r
80 600) lines of code.\r
81 \r
82 And in addition has many more features:\r
83 \r
84  * Gradual searches; you don't have to wait for the whole search to finish,\r
85    sort of like the 'less' command\r
86  * Proper multi-part handling; finds out if there's text/plain, or if\r
87    text/html, converts it using elinks\r
88  * Extract all attachments\r
89  * Open message with mutt (or any external application that can open an mbox)\r
90  * More proper UTF-8 handling\r
91  * Configurable key mappings\r
92  * Much simpler, cleaner, beautiful, and extensible code (only 600 lines!)\r
93 \r
94 I just added support to reply mails today, and after trying a bit I\r
95 got complaints from the vger.kernel.org server, but people using mutt\r
96 have had the same complaint, so I don't know, I wouldn't reply totally\r
97 on that. *But* you can open the mail with mutt, or any other client\r
98 that you want, as a fall-back option (the command to run is\r
99 configurable).\r
100 \r
101 Sure, it depends on the Ruby bindings from notmuch (but those are easy\r
102 to compile), and on the 'mail' library from Ruby (easy to install),\r
103 but it makes things much, *much* easier. There might be ways to make\r
104 certain dependencies optional, and make this, and the current plug-in\r
105 converge somehow (maybe even the python one too), but for now I don't\r
106 see any reason to look back.\r
107 \r
108 I can't wait to start using it for real :)\r
109 \r
110 Enjoy ;)\r
111 \r
112 https://github.com/felipec/notmuch-vim-ruby\r
113 \r
114 P.S. I CC'ed a bunch of people that have showed interest in the vim\r
115 interface, I hope you don't mind\r
116 \r
117 -- \r
118 Felipe Contreras\r