1 Return-Path: <bremner@tesseract.cs.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 34180429E29
\r
6 for <notmuch@notmuchmail.org>; Tue, 24 Mar 2015 06:26:39 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=unavailable
\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 gecWo3ALnXvz for <notmuch@notmuchmail.org>;
\r
16 Tue, 24 Mar 2015 06:26:39 -0700 (PDT)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
19 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 3ABAE429E45
\r
22 for <notmuch@notmuchmail.org>; Tue, 24 Mar 2015 06:26:23 -0700 (PDT)
\r
23 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
24 4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)
\r
25 id 1YaOpy-0000sx-41; Tue, 24 Mar 2015 13:25:42 +0000
\r
26 Received: (nullmailer pid 2686 invoked by uid 1000); Tue, 24 Mar 2015
\r
28 From: David Bremner <david@tethera.net>
\r
29 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
\r
30 Subject: [Patch v5 6/8] lib: add private function to extract the database for
\r
32 Date: Tue, 24 Mar 2015 09:24:09 -0400
\r
33 Message-Id: <1427203451-1540-7-git-send-email-david@tethera.net>
\r
34 X-Mailer: git-send-email 2.1.4
\r
35 In-Reply-To: <1427203451-1540-1-git-send-email-david@tethera.net>
\r
36 References: <1426352554-4383-10-git-send-email-david@tethera.net>
\r
37 <1427203451-1540-1-git-send-email-david@tethera.net>
\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: Tue, 24 Mar 2015 13:26:40 -0000
\r
52 This is needed by logging in functions outside message.cc that take
\r
53 only a notmuch_message_t object.
\r
55 lib/message.cc | 6 ++++++
\r
56 lib/notmuch-private.h | 2 ++
\r
57 2 files changed, 8 insertions(+)
\r
59 diff --git a/lib/message.cc b/lib/message.cc
\r
60 index 956a70a..b84e5e1 100644
\r
61 --- a/lib/message.cc
\r
62 +++ b/lib/message.cc
\r
63 @@ -1626,3 +1626,9 @@ notmuch_message_destroy (notmuch_message_t *message)
\r
65 talloc_free (message);
\r
68 +notmuch_database_t *
\r
69 +_notmuch_message_database (notmuch_message_t *message)
\r
71 + return message->notmuch;
\r
73 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
\r
74 index 7cb6fd4..dc58a2f 100644
\r
75 --- a/lib/notmuch-private.h
\r
76 +++ b/lib/notmuch-private.h
\r
77 @@ -472,6 +472,8 @@ _notmuch_doc_id_set_remove (notmuch_doc_id_set_t *doc_ids,
\r
79 _notmuch_message_add_reply (notmuch_message_t *message,
\r
80 notmuch_message_t *reply);
\r
81 +notmuch_database_t *
\r
82 +_notmuch_message_database (notmuch_message_t *message);
\r