1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id B9F77429E27
\r
6 for <notmuch@notmuchmail.org>; Tue, 6 Dec 2011 05:22:47 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id aQcHjigKGSyJ for <notmuch@notmuchmail.org>;
\r
16 Tue, 6 Dec 2011 05:22:47 -0800 (PST)
\r
17 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com
\r
18 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 0FBF5429E26
\r
21 for <notmuch@notmuchmail.org>; Tue, 6 Dec 2011 05:22:46 -0800 (PST)
\r
22 Received: by bkbzu5 with SMTP id zu5so7357457bkb.26
\r
23 for <notmuch@notmuchmail.org>; Tue, 06 Dec 2011 05:22:42 -0800 (PST)
\r
24 Received: by 10.180.88.66 with SMTP id be2mr17073309wib.54.1323177762658;
\r
25 Tue, 06 Dec 2011 05:22:42 -0800 (PST)
\r
26 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.
\r
27 [80.220.92.23]) by mx.google.com with ESMTPS id
\r
28 fw16sm33516851wbb.13.2011.12.06.05.22.40
\r
29 (version=SSLv3 cipher=OTHER); Tue, 06 Dec 2011 05:22:41 -0800 (PST)
\r
30 From: Jani Nikula <jani@nikula.org>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: [PATCH v3 0/2] notmuch hooks
\r
33 Date: Tue, 6 Dec 2011 15:22:36 +0200
\r
34 Message-Id: <cover.1323176771.git.jani@nikula.org>
\r
35 X-Mailer: git-send-email 1.7.5.4
\r
37 <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org>
\r
39 <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org>
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Tue, 06 Dec 2011 13:22:47 -0000
\r
54 Hi all, this is v3 of the notmuch hooks patches. I think this is nearing
\r
55 completion apart from final review and, most notably, tests.
\r
59 * Incorporate Austin's review comments (id:"20111204034210.GA16405@mit.edu" and
\r
60 id:"20111204040047.GB16405@mit.edu"), the biggest change being the switch from
\r
61 system() to fork()/execl().
\r
63 * Rename notmuch-hook.c to hooks.c (reserving notmuch- prefixed files to notmuch
\r
66 * Add "notmuch help" documentation.
\r
70 I've been using this for some days now, and (subjective as it is) I have to say
\r
71 I like offlineimap being run from notmuch new "pre-new" hook much better than
\r
72 vice versa. Even more so for "post-new" tagging scripts.
\r
80 cli: introduce the concept of user defined hooks
\r
81 cli: add support for pre and post notmuch new hooks
\r
83 Makefile.local | 1 +
\r
85 hooks.c | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
\r
86 notmuch-client.h | 3 ++
\r
87 notmuch-new.c | 12 +++++++
\r
88 notmuch.1 | 50 ++++++++++++++++++++++++++++-
\r
89 notmuch.c | 39 ++++++++++++++++++++++-
\r
90 7 files changed, 206 insertions(+), 2 deletions(-)
\r
91 create mode 100644 hooks.c
\r