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 9097E431FD0 for ; Wed, 7 Dec 2011 10:11:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled 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 PS48giLmNriW for ; Wed, 7 Dec 2011 10:11:07 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 0A025431FB6 for ; Wed, 7 Dec 2011 10:11:07 -0800 (PST) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id 6C2C966E0249; Wed, 7 Dec 2011 10:11:04 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com [76.174.137.84]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id 8B19966E025D; Wed, 7 Dec 2011 10:11:00 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id A53054C1; Wed, 7 Dec 2011 13:10:59 -0500 (EST) From: Jameson Graef Rollins To: Jani Nikula , Tom Prince , notmuch@notmuchmail.org Subject: Re: [PATCH v3 0/2] notmuch hooks In-Reply-To: <87mxb4b6l9.fsf@nikula.org> References: <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org> <87d3c1rtcq.fsf@servo.finestructure.net> <87borlf4ve.fsf@hermes.hocat.ca> <87mxb4b6l9.fsf@nikula.org> User-Agent: Notmuch/0.10.2+73~g6bbc3f1 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 07 Dec 2011 10:10:57 -0800 Message-ID: <87ty5c8d72.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Wed, 07 Dec 2011 18:11:10 -0000 --=-=-= On Wed, 07 Dec 2011 20:05:22 +0200, Jani Nikula wrote: > It would, but as I wrote in id:"87mxb8kt5r.fsf@nikula.org", I think that > should come as another patch afterwards. I know I can't decide yet what > should be passed and how. Processed message counts (added, deleted, > renamed) could be passed on the command line, but how useful is that > really? The same can be easily achieved through initial tagging. I would say that probably the best way to pass information to the hook scripts is via the environment. For instance, notmuch could pass the variable NOTMUCH_NEW_MESSAGES containing the number of new messages to the post-new script. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJO36wxAAoJEO00zqvie6q88Y0P/0p01R/Skx5Ibd/o7i2F0njo XGvm/DlFQ2piaCyVLVG2IhZ6AygB/iloULTNLtSTEtB2ixSwowZSAKMnceeMtwTG 3p0X90w/wHNYp/L9mpgOsJAUls8QJcAJmtorXMh0IP0+wtQ45D+MoEu7ajIwfDR1 5VTvuhq2dHkOweIkkZwxgXk5fsf9J3mUbNaKbfG8j88BVx5IZG1YafKeb1+fCtuD P0qEu8fQqbkSjpeEj9fOuEE3o2ILrgQKClHt5dgvtJoWDNJDCRaTHlXY+nr5EIRi mV5qHITl1CpJYuBRuswxnMdVz+sZURjB7epi5X2izfm4p6wX89x5qm63udL4OY/2 YvRDn9jPXYstId+4k39x+sRqSzoDmat8FGbtGI/UFyvcdRK8hZZPQnP9nk9kbUpK EmkaLgHHDOAiGCPcoiVhAyg1/d8QOOv0+mVH3hBtQtI3cqTbXOc0Dd6Vr7ONlNza A+hExVWSLzKvyl9kIa0BpqLhDYnp9ToclPj+Kyr5iUTND2v1Ikebj4lVUAY3LRTK FhsEzdedsAjcdKEBc7eTlVi/sWEeh+OYiDekOiNrALOP0HCzBds/3dRp0fnB1Sqx Clbe940fwf9hLzEHiXd/8P54UvrzYrrJh0j1gdfC+G8zpUJxQUeEihkHEhFVjCNi /q0rySLHxzXAe5HDNES8 =biir -----END PGP SIGNATURE----- --=-=-=--