Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 48 / bd29c0acb2a98e97cae57e9a112b0bbb4a9e62
1 Return-Path: <david@tethera.net>\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 arlo.cworth.org (Postfix) with ESMTP id 40AB46DE1867\r
6  for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 08:26:51 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.031\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.031 tagged_above=-999 required=5\r
12  tests=[AWL=-0.020, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id GaVv7M2tK7dc for <notmuch@notmuchmail.org>;\r
17  Sat, 12 Mar 2016 08:26:49 -0800 (PST)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 5F20A6DE1865\r
20  for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 08:26:49 -0800 (PST)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <david@tethera.net>)\r
23  id 1aemNw-0007qq-Ba; Sat, 12 Mar 2016 11:27:24 -0500\r
24 Received: (nullmailer pid 29846 invoked by uid 1000);\r
25  Sat, 12 Mar 2016 16:26:45 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: Patrick Totzke <patricktotzke@gmail.com>, notmuch@notmuchmail.org\r
28 Subject: Re: [PATCH] use notmuch_database_open_verbose\r
29 In-Reply-To: <1457795857-12410-1-git-send-email-patricktotzke@gmail.com>\r
30 References: <1457795857-12410-1-git-send-email-patricktotzke@gmail.com>\r
31 User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1\r
32  (x86_64-pc-linux-gnu)\r
33 Date: Sat, 12 Mar 2016 12:26:45 -0400\r
34 Message-ID: <87r3ff64sa.fsf@zancas.localnet>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.20\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: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
48  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sat, 12 Mar 2016 16:26:51 -0000\r
50 \r
51 Patrick Totzke <patricktotzke@gmail.com> writes:\r
52 \r
53 > ... instead of the deprecated notmuch_database_open\r
54 \r
55 Perhaps it should be formally deprecated, but unlike several other\r
56 functions, it isn't.\r
57 \r
58 > when opening the database in notmuch.database.Database.open.\r
59 > This prevents the library to print Xapian exceptions to stderr.\r
60 > ---\r
61 >  bindings/python/notmuch/database.py | 6 +++---\r
62 >  1 file changed, 3 insertions(+), 3 deletions(-)\r
63 >\r
64 > diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py\r
65 > index f304533..5400338 100644\r
66 > --- a/bindings/python/notmuch/database.py\r
67 > +++ b/bindings/python/notmuch/database.py\r
68 > @@ -86,8 +86,8 @@ class Database(object):\r
69 >      _get_version.argtypes = [NotmuchDatabaseP]\r
70 >      _get_version.restype = c_uint\r
71 >  \r
72 > -    """notmuch_database_open"""\r
73 > -    _open = nmlib.notmuch_database_open\r
74 > +    """notmuch_database_open_verbose"""\r
75 > +    _open = nmlib.notmuch_database_open_verbose\r
76 >      _open.argtypes = [c_char_p, c_uint, POINTER(NotmuchDatabaseP)]\r
77 >      _open.restype = c_uint\r
78 \r
79 I expect you probably want to add the new binding, rather than replacing\r
80 the old one. Otherwise updating the bindings will break all bindings\r
81 using scripts.\r
82 \r
83 d\r