[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 8a / 61437c77080d3aa51347a5f88b62a5219bd641
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 0E386429E28\r
6         for <notmuch@notmuchmail.org>; Fri, 27 Mar 2015 15:14:13 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 aAKoIn4HU66h for <notmuch@notmuchmail.org>;\r
16         Fri, 27 Mar 2015 15:14:10 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224])\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 4CB2F431E82\r
22         for <notmuch@notmuchmail.org>; Fri, 27 Mar 2015 15:14:10 -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 1YbcVM-0000F4-VB; Fri, 27 Mar 2015 22:13:28 +0000\r
26 Received: (nullmailer pid 1817 invoked by uid 1000); Fri, 27 Mar 2015\r
27         22:12:15 -0000\r
28 From: David Bremner <david@tethera.net>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: [Patch v6 6/8] lib: add private function to extract the database for\r
31         a message.\r
32 Date: Fri, 27 Mar 2015 23:11:58 +0100\r
33 Message-Id: <1427494320-1483-7-git-send-email-david@tethera.net>\r
34 X-Mailer: git-send-email 2.1.4\r
35 In-Reply-To: <1427494320-1483-1-git-send-email-david@tethera.net>\r
36 References: <1427494320-1483-1-git-send-email-david@tethera.net>\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Fri, 27 Mar 2015 22:14:13 -0000\r
50 \r
51 This is needed by logging in functions outside message.cc that take\r
52 only a notmuch_message_t object.\r
53 ---\r
54  lib/message.cc        | 6 ++++++\r
55  lib/notmuch-private.h | 2 ++\r
56  2 files changed, 8 insertions(+)\r
57 \r
58 diff --git a/lib/message.cc b/lib/message.cc\r
59 index 956a70a..b84e5e1 100644\r
60 --- a/lib/message.cc\r
61 +++ b/lib/message.cc\r
62 @@ -1626,3 +1626,9 @@ notmuch_message_destroy (notmuch_message_t *message)\r
63  {\r
64      talloc_free (message);\r
65  }\r
66 +\r
67 +notmuch_database_t *\r
68 +_notmuch_message_database (notmuch_message_t *message)\r
69 +{\r
70 +    return message->notmuch;\r
71 +}\r
72 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h\r
73 index 7cb6fd4..dc58a2f 100644\r
74 --- a/lib/notmuch-private.h\r
75 +++ b/lib/notmuch-private.h\r
76 @@ -472,6 +472,8 @@ _notmuch_doc_id_set_remove (notmuch_doc_id_set_t *doc_ids,\r
77  void\r
78  _notmuch_message_add_reply (notmuch_message_t *message,\r
79                             notmuch_message_t *reply);\r
80 +notmuch_database_t *\r
81 +_notmuch_message_database (notmuch_message_t *message);\r
82  \r
83  /* sha1.c */\r
84  \r
85 -- \r
86 2.1.4\r
87 \r