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 06270431FBC for ; Fri, 15 Jan 2010 12:45:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.834 X-Spam-Level: X-Spam-Status: No, score=-1.834 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1.8, AWL=-0.035, BAYES_50=0.001] autolearn=ham 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 Y8FXh-J9+zdi; Fri, 15 Jan 2010 12:45:30 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 57F1D431FAE; Fri, 15 Jan 2010 12:45:30 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 12318254091; Fri, 15 Jan 2010 12:45:30 -0800 (PST) From: Carl Worth To: martin f krafft , notmuch@notmuchmail.org In-Reply-To: <20100115001600.GD25209@lapse.rw.madduck.net> References: <20100114084713.GA22273@harikalardiyari> <87eilse1hg.fsf@yoom.home.cworth.org> <20100115001600.GD25209@lapse.rw.madduck.net> Date: Fri, 15 Jan 2010 12:45:29 -0800 Message-ID: <87vdf3cd1y.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] Thoughts on notmuch and Lua 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: Fri, 15 Jan 2010 20:45:31 -0000 --=-=-= On Fri, 15 Jan 2010 13:16:00 +1300, martin f krafft wrote: > Lua for hooks has the advantage that the hooks can be executed in > the context of manipulateable objects. On the other hand, hooks in > the style of run-parts directories are more flexible and accessible, > and could always be invoked as filters for the manipulateable data. Good point. One thing that notmuch has in its favor already is that there's a command-line interface that provides all of the interesting functionality. So it's already a fairly trivial matter to "hook" things like "notmuch new" by writing a script in whatever language you prefer to invoke things like "notmuch search" and "notmuch tag". And that's what I'm doing already, (with a shell script), to tag newly-arrived messages. The only part that's really missing here is a directory where scripts could be dropped in and get automatically invoked. What do you think, Ali? Would an approach like that satisfy the things you had in mind for hooks? -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLUNPp6JDdNq8qSWgRAhpYAJwLYVAATuItGWTlCtEzStMzj2xWqQCaA+2a 8NXuz3sh9y1zBxBfGqPkrlg= =f0kH -----END PGP SIGNATURE----- --=-=-=--