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 76A06429E27
\r
6 for <notmuch@notmuchmail.org>; Tue, 6 Dec 2011 05:30:17 -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 Q99FCLrZnJmV for <notmuch@notmuchmail.org>;
\r
16 Tue, 6 Dec 2011 05:30:17 -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 C21BF429E26
\r
21 for <notmuch@notmuchmail.org>; Tue, 6 Dec 2011 05:30:16 -0800 (PST)
\r
22 Received: by bkbzu5 with SMTP id zu5so7365551bkb.26
\r
23 for <notmuch@notmuchmail.org>; Tue, 06 Dec 2011 05:30:15 -0800 (PST)
\r
24 Received: by 10.216.182.193 with SMTP id o43mr573816wem.87.1323178215093;
\r
25 Tue, 06 Dec 2011 05:30:15 -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 hn15sm14779493wib.22.2011.12.06.05.30.13
\r
29 (version=SSLv3 cipher=OTHER); Tue, 06 Dec 2011 05:30:14 -0800 (PST)
\r
30 From: Jani Nikula <jani@nikula.org>
\r
31 To: notmuch@notmuchmail.org
\r
32 Subject: Re: [PATCH v3 1/2] cli: introduce the concept of user defined hooks
\r
34 <f1ea48544f712c54bbb14d167c14869b2cd6a6d7.1323176771.git.jani@nikula.org>
\r
36 <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org>
\r
37 <cover.1323176771.git.jani@nikula.org>
\r
38 <f1ea48544f712c54bbb14d167c14869b2cd6a6d7.1323176771.git.jani@nikula.org>
\r
39 User-Agent: Notmuch/0.10.1+59~ga1814f2 (http://notmuchmail.org) Emacs/23.3.1
\r
41 Date: Tue, 06 Dec 2011 15:30:11 +0200
\r
42 Message-ID: <8739cxzv30.fsf@nikula.org>
\r
44 Content-Type: text/plain; charset=us-ascii
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Tue, 06 Dec 2011 13:30:17 -0000
\r
59 On Tue, 6 Dec 2011 15:22:37 +0200, Jani Nikula <jani@nikula.org> wrote:
\r
60 > + if (!WIFEXITED (status) || WEXITSTATUS (status)) {
\r
61 > + if (WEXITSTATUS (status)) {
\r
63 Grrh, the above should be "if (WIFEXITED (status))". Please review
\r
68 > + fprintf (stderr, "Error: %s hook failed with status %d\n",
\r
69 > + hook, WEXITSTATUS (status));
\r
70 > + } else if (WIFSIGNALED (status)) {
\r
71 > + fprintf (stderr, "Error: %s hook terminated with signal %d\n",
\r
72 > + hook, WTERMSIG (status));
\r