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 B9F77429E27 for ; Tue, 6 Dec 2011 05:22:47 -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 aQcHjigKGSyJ for ; Tue, 6 Dec 2011 05:22:47 -0800 (PST) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0FBF5429E26 for ; Tue, 6 Dec 2011 05:22:46 -0800 (PST) Received: by bkbzu5 with SMTP id zu5so7357457bkb.26 for ; Tue, 06 Dec 2011 05:22:42 -0800 (PST) Received: by 10.180.88.66 with SMTP id be2mr17073309wib.54.1323177762658; Tue, 06 Dec 2011 05:22:42 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id fw16sm33516851wbb.13.2011.12.06.05.22.40 (version=SSLv3 cipher=OTHER); Tue, 06 Dec 2011 05:22:41 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH v3 0/2] notmuch hooks Date: Tue, 6 Dec 2011 15:22:36 +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: Tue, 06 Dec 2011 13:22:47 -0000 Hi all, this is v3 of the notmuch hooks patches. I think this is nearing completion apart from final review and, most notably, tests. Changes in v3: * Incorporate Austin's review comments (id:"20111204034210.GA16405@mit.edu" and id:"20111204040047.GB16405@mit.edu"), the biggest change being the switch from system() to fork()/execl(). * Rename notmuch-hook.c to hooks.c (reserving notmuch- prefixed files to notmuch commands). * Add "notmuch help" documentation. * Add NEWS. I've been using this for some days now, and (subjective as it is) I have to say I like offlineimap being run from notmuch new "pre-new" hook much better than vice versa. Even more so for "post-new" tagging scripts. BR, Jani. Jani Nikula (2): cli: introduce the concept of user defined hooks cli: add support for pre and post notmuch new hooks Makefile.local | 1 + NEWS | 10 ++++++ hooks.c | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ notmuch-client.h | 3 ++ notmuch-new.c | 12 +++++++ notmuch.1 | 50 ++++++++++++++++++++++++++++- notmuch.c | 39 ++++++++++++++++++++++- 7 files changed, 206 insertions(+), 2 deletions(-) create mode 100644 hooks.c -- 1.7.5.4