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 982614196F2 for ; Thu, 22 Apr 2010 14:50:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] 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 jRwR4TlFRNw0; Thu, 22 Apr 2010 14:50:34 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E4630431FC1; Thu, 22 Apr 2010 14:50:33 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 90BBE568DE4; Thu, 22 Apr 2010 14:50:33 -0700 (PDT) From: Carl Worth To: Dirk Hohndel , notmuch@notmuchmail.org Subject: Re: [PATCH] Add 'G' keybinding to folder and search view that triggers external poll In-Reply-To: References: Date: Thu, 22 Apr 2010 14:50:33 -0700 Message-ID: <874oj3gnrq.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; 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: Thu, 22 Apr 2010 21:50:34 -0000 --=-=-= On Fri, 09 Apr 2010 12:53:26 -0700, Dirk Hohndel wrote: > The new functions first check if an external poll script has been defined in > the variable 'notmuch-external-refresh-script and if yes, runs that script > before executing the existing refresh function (which is bound to '=') Thanks Dirk, This is even handier than I expected. I've pushed this now, but followed up immediately with a (totally trivial) change to reduce code duplication, and then a (slightly more major) change to define the controlling variable with defcustom so that the user can find the variable in the customize screen for notmuch. I also renamed it to notmuch-poll-script so you'll need to update your setting for this feature to work. -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFL0MSp6JDdNq8qSWgRAmHwAJ95/BWeRP7/jrLppms+yTQTISIpPwCfVLiU QsWfuAEGrugT+S1aG6iGZu4= =J6+h -----END PGP SIGNATURE----- --=-=-=--