1 Return-Path: <bremner@unb.ca>
\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 B127340D148
\r
6 for <notmuch@notmuchmail.org>; Sun, 24 Oct 2010 14:01:37 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
\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 xoq15ToTpc+R for <notmuch@notmuchmail.org>;
\r
16 Sun, 24 Oct 2010 14:01:25 -0700 (PDT)
\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])
\r
18 by olra.theworths.org (Postfix) with ESMTP id A669740D153
\r
19 for <notmuch@notmuchmail.org>; Sun, 24 Oct 2010 14:01:14 -0700 (PDT)
\r
20 Received: from rocinante.cs.unb.ca
\r
21 (fctnnbsc30w-142167176217.pppoe-dynamic.High-Speed.nb.bellaliant.net
\r
22 [142.167.176.217]) (authenticated bits=0)
\r
23 by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id o9OL1BMt017816
\r
24 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);
\r
25 Sun, 24 Oct 2010 18:01:14 -0300
\r
26 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.72)
\r
27 (envelope-from <bremner@unb.ca>)
\r
28 id 1PA7gl-0006Os-Jh; Sun, 24 Oct 2010 18:01:11 -0300
\r
29 From: david@tethera.net
\r
30 To: notmuch@notmuchmail.org
\r
31 Subject: [PATCH 4/4] Enable logging in notmuch-tag.c
\r
32 Date: Sun, 24 Oct 2010 18:01:06 -0300
\r
33 Message-Id: <1287954066-24512-5-git-send-email-david@tethera.net>
\r
34 X-Mailer: git-send-email 1.7.1
\r
35 In-Reply-To: <1286803617-17328-1-git-send-email-david@tethera.net>
\r
36 References: <1286803617-17328-1-git-send-email-david@tethera.net>
\r
37 Cc: David Bremner <bremner@unb.ca>
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Sun, 24 Oct 2010 21:01:38 -0000
\r
52 From: David Bremner <bremner@unb.ca>
\r
54 Currently a separate function must be called to enable logging; this API is subject to change.
\r
56 notmuch-tag.c | 5 +++++
\r
57 1 files changed, 5 insertions(+), 0 deletions(-)
\r
59 diff --git a/notmuch-tag.c b/notmuch-tag.c
\r
60 index fd54bc7..bd7bfbc 100644
\r
63 @@ -101,6 +101,11 @@ notmuch_tag_command (void *ctx, unused (int argc), unused (char *argv[]))
\r
64 if (notmuch == NULL)
\r
67 + if (notmuch_database_open_log(notmuch) != NOTMUCH_STATUS_SUCCESS){
\r
68 + fprintf (stderr, "Failed to open log\n");
\r
72 query = notmuch_query_create (notmuch, query_string);
\r
73 if (query == NULL) {
\r
74 fprintf (stderr, "Out of memory.\n");
\r