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 3E295431FD0 for ; Thu, 8 Dec 2011 14:48:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 MOv7QBVv1Qhf for ; Thu, 8 Dec 2011 14:48:39 -0800 (PST) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 86F6E431FB6 for ; Thu, 8 Dec 2011 14:48:39 -0800 (PST) Received: by eaal13 with SMTP id l13so1711208eaa.26 for ; Thu, 08 Dec 2011 14:48:36 -0800 (PST) Received: by 10.213.15.200 with SMTP id l8mr333113eba.112.1323384516739; Thu, 08 Dec 2011 14:48:36 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id z54sm23183634eeh.5.2011.12.08.14.48.33 (version=SSLv3 cipher=OTHER); Thu, 08 Dec 2011 14:48:34 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v4 0/3] notmuch hooks Date: Fri, 9 Dec 2011 00:48:28 +0200 Message-Id: X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org> References: <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org> 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, 08 Dec 2011 22:48:41 -0000 Hi all, this is v4 of the notmuch hooks patches. Changes: * Fix WIFEXITED (id:"8739cxzv30.fsf@nikula.org"). * Add tests. BR, Jani. Jani Nikula (3): cli: introduce the concept of user defined hooks cli: add support for pre and post notmuch new hooks test: add tests for hooks Makefile.local | 1 + NEWS | 10 +++++ hooks.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++ notmuch-client.h | 3 ++ notmuch-new.c | 12 ++++++ notmuch.1 | 50 +++++++++++++++++++++++++- notmuch.c | 39 +++++++++++++++++++- test/hooks | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++ test/notmuch-test | 1 + 9 files changed, 311 insertions(+), 2 deletions(-) create mode 100644 hooks.c create mode 100755 test/hooks -- 1.7.5.4