Re: [PATCH 1/2] cli: Parsing. Allow true/false parameter for boolean options.
[notmuch-archives.git] / 12 / d7adc429a5039da77524949ca56928abc156d1
1 Return-Path: <cworth@cworth.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 06270431FBC\r
6         for <notmuch@notmuchmail.org>; Fri, 15 Jan 2010 12:45:31 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.834\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.834 tagged_above=-999 required=5\r
12         tests=[ALL_TRUSTED=-1.8, AWL=-0.035, BAYES_50=0.001] autolearn=ham\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 Y8FXh-J9+zdi; Fri, 15 Jan 2010 12:45:30 -0800 (PST)\r
16 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
17         by olra.theworths.org (Postfix) with ESMTP id 57F1D431FAE;\r
18         Fri, 15 Jan 2010 12:45:30 -0800 (PST)\r
19 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
20         id 12318254091; Fri, 15 Jan 2010 12:45:30 -0800 (PST)\r
21 From: Carl Worth <cworth@cworth.org>\r
22 To: martin f krafft <madduck@madduck.net>, notmuch@notmuchmail.org\r
23 In-Reply-To: <20100115001600.GD25209@lapse.rw.madduck.net>\r
24 References: <20100114084713.GA22273@harikalardiyari>\r
25         <87eilse1hg.fsf@yoom.home.cworth.org>\r
26         <20100115001600.GD25209@lapse.rw.madduck.net>\r
27 Date: Fri, 15 Jan 2010 12:45:29 -0800\r
28 Message-ID: <87vdf3cd1y.fsf@yoom.home.cworth.org>\r
29 MIME-Version: 1.0\r
30 Content-Type: multipart/signed; boundary="=-=-=";\r
31         micalg=pgp-sha1; protocol="application/pgp-signature"\r
32 Subject: Re: [notmuch] Thoughts on notmuch and Lua\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.13\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37         <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Fri, 15 Jan 2010 20:45:31 -0000\r
46 \r
47 --=-=-=\r
48 \r
49 On Fri, 15 Jan 2010 13:16:00 +1300, martin f krafft <madduck@madduck.net> wrote:\r
50 > Lua for hooks has the advantage that the hooks can be executed in\r
51 > the context of manipulateable objects. On the other hand, hooks in\r
52 > the style of run-parts directories are more flexible and accessible,\r
53 > and could always be invoked as filters for the manipulateable data.\r
54 \r
55 Good point.\r
56 \r
57 One thing that notmuch has in its favor already is that there's a\r
58 command-line interface that provides all of the interesting\r
59 functionality. So it's already a fairly trivial matter to "hook" things\r
60 like "notmuch new" by writing a script in whatever language you prefer\r
61 to invoke things like "notmuch search" and "notmuch tag".\r
62 \r
63 And that's what I'm doing already, (with a shell script), to tag\r
64 newly-arrived messages.\r
65 \r
66 The only part that's really missing here is a directory where scripts\r
67 could be dropped in and get automatically invoked.\r
68 \r
69 What do you think, Ali? Would an approach like that satisfy the things\r
70 you had in mind for hooks?\r
71 \r
72 -Carl\r
73 \r
74 --=-=-=\r
75 Content-Type: application/pgp-signature\r
76 \r
77 -----BEGIN PGP SIGNATURE-----\r
78 Version: GnuPG v1.4.10 (GNU/Linux)\r
79 \r
80 iD8DBQFLUNPp6JDdNq8qSWgRAhpYAJwLYVAATuItGWTlCtEzStMzj2xWqQCaA+2a\r
81 8NXuz3sh9y1zBxBfGqPkrlg=\r
82 =f0kH\r
83 -----END PGP SIGNATURE-----\r
84 --=-=-=--\r