1 Return-Path: <jani@nikula.org>
\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 75B98429E25
\r
6 for <notmuch@notmuchmail.org>; Sun, 11 Dec 2011 15:10:39 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5
\r
12 tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 3pJCIvN8Yz37 for <notmuch@notmuchmail.org>;
\r
16 Sun, 11 Dec 2011 15:10:38 -0800 (PST)
\r
17 Received: from mail-pw0-f53.google.com (mail-pw0-f53.google.com
\r
18 [209.85.160.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id A49B9431FB6
\r
21 for <notmuch@notmuchmail.org>; Sun, 11 Dec 2011 15:10:38 -0800 (PST)
\r
22 Received: by pbds6 with SMTP id s6so567966pbd.26
\r
23 for <notmuch@notmuchmail.org>; Sun, 11 Dec 2011 15:10:37 -0800 (PST)
\r
25 Received: by 10.68.73.34 with SMTP id i2mr28500441pbv.43.1323645037831; Sun,
\r
26 11 Dec 2011 15:10:37 -0800 (PST)
\r
27 Received: by 10.68.212.134 with HTTP; Sun, 11 Dec 2011 15:10:37 -0800 (PST)
\r
28 Received: by 10.68.212.134 with HTTP; Sun, 11 Dec 2011 15:10:37 -0800 (PST)
\r
29 In-Reply-To: <20111211225822.GH2760@mit.edu>
\r
30 References: <1323640100-18326-1-git-send-email-jani@nikula.org>
\r
31 <87wra26a5u.fsf@gmail.com> <20111211225822.GH2760@mit.edu>
\r
32 Date: Mon, 12 Dec 2011 01:10:37 +0200
\r
34 <CAB+hUn-ADRtZRCq5Ad6H6R2L246EBR8hOSsk4B2yeRsH4kN16w@mail.gmail.com>
\r
35 Subject: Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script
\r
36 From: Jani Nikula <jani@nikula.org>
\r
37 To: Austin Clements <amdragon@mit.edu>
\r
38 Content-Type: multipart/alternative; boundary=f46d0417071b49e4c804b3d920ce
\r
39 Cc: notmuch@notmuchmail.org
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Sun, 11 Dec 2011 23:10:39 -0000
\r
54 --f46d0417071b49e4c804b3d920ce
\r
55 Content-Type: text/plain; charset=UTF-8
\r
57 On Dec 12, 2011 12:56 AM, "Austin Clements" <amdragon@mit.edu> wrote:
\r
59 > Quoth Dmitry Kurochkin on Dec 12 at 2:00 am:
\r
62 > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula <jani@nikula.org> wrote:
\r
63 > > > Let notmuch-poll-script be a function as well as a string. Make
\r
65 > > > value nil instead of an empty string, but allow "" for backwards
\r
66 > > > compatibility. Add a notmuch poll function to call "notmuch new"
\r
68 > > > configured notmuch-command.
\r
70 > > > This allows taking better advantage of the "notmuch new" hooks from
\r
72 > > > without intermediate scripts.
\r
75 > > I was just thinking about working on this myself :)
\r
77 > > I think a better solution would be to allow running a command with
\r
78 > > arguments. Creating a elisp function just to run a command with some
\r
79 > > parameters feels wrong. This way we would have to add another function
\r
80 > > each time we want to add another argument.
\r
82 > This seems a little awkward to me, too, though perhaps it's the best
\r
83 > way. Other approaches to consider include accepting a list for
\r
84 > notmuch-poll-script (e.g., ("notmuch" "new")) or leaving it as a
\r
85 > string but treating it as a shell command so "notmuch new" would Just
\r
86 > Work. Personally, I think the latter is the most intuitive, but it
\r
87 > would be worth looking at how other customizable external commands are
\r
90 > A function seems powerful, but also like overkill. Can you give a use
\r
91 > case for a function that wouldn't be more easily solved by one of the
\r
94 The only reason I had for using a function was running notmuch using
\r
95 notmuch-command. Any ideas how to do that with the Just Works approach?
\r
99 --f46d0417071b49e4c804b3d920ce
\r
100 Content-Type: text/html; charset=UTF-8
\r
101 Content-Transfer-Encoding: quoted-printable
\r
104 On Dec 12, 2011 12:56 AM, "Austin Clements" <<a href=3D"mailto=
\r
105 :amdragon@mit.edu">amdragon@mit.edu</a>> wrote:<br>
\r
107 > Quoth Dmitry Kurochkin on Dec 12 at =C2=A02:00 am:<br>
\r
108 > > Hi Jani.<br>
\r
110 > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula <<a href=3D"ma=
\r
111 ilto:jani@nikula.org">jani@nikula.org</a>> wrote:<br>
\r
112 > > > Let notmuch-poll-script be a function as well as a string. M=
\r
114 > > > value nil instead of an empty string, but allow ""=
\r
116 > > > compatibility. Add a notmuch poll function to call "not=
\r
117 much new" using the<br>
\r
118 > > > configured notmuch-command.<br>
\r
120 > > > This allows taking better advantage of the "notmuch new=
\r
121 " hooks from emacs<br>
\r
122 > > > without intermediate scripts.<br>
\r
125 > > I was just thinking about working on this myself :)<br>
\r
127 > > I think a better solution would be to allow running a command wit=
\r
129 > > arguments. =C2=A0Creating a elisp function just to run a command =
\r
131 > > parameters feels wrong. =C2=A0This way we would have to add anoth=
\r
133 > > each time we want to add another argument.<br>
\r
135 > This seems a little awkward to me, too, though perhaps it's the be=
\r
137 > way. =C2=A0Other approaches to consider include accepting a list for<b=
\r
139 > notmuch-poll-script (e.g., ("notmuch" "new")) or l=
\r
141 > string but treating it as a shell command so "notmuch new" w=
\r
143 > Work. =C2=A0Personally, I think the latter is the most intuitive, but =
\r
145 > would be worth looking at how other customizable external commands are=
\r
147 > done in Emacs.<br>
\r
149 > A function seems powerful, but also like overkill. =C2=A0Can you give =
\r
151 > case for a function that wouldn't be more easily solved by one of =
\r
153 > above approaches?</p>
\r
154 <p>The only reason I had for using a function was running notmuch using not=
\r
155 much-command. Any ideas how to do that with the Just Works approach?</p>
\r
159 --f46d0417071b49e4c804b3d920ce--
\r