Re: [PATCH 6/7] ruby: Use notmuch_database_destroy instead of notmuch_database_close
[notmuch-archives.git] / 40 / 8abef608e06521aeb533005d99b35c426cd414
1 Return-Path: <amdragon@mit.edu>\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 ECA5F431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 25 Apr 2012 06:39:34 -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: -0.7\r
10 X-Spam-Level: \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 lIVRXqNIArZ7 for <notmuch@notmuchmail.org>;\r
16         Wed, 25 Apr 2012 06:39:34 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU\r
18         [18.9.25.15])\r
19         by olra.theworths.org (Postfix) with ESMTP id 59F9E431FAF\r
20         for <notmuch@notmuchmail.org>; Wed, 25 Apr 2012 06:39:34 -0700 (PDT)\r
21 X-AuditID: 1209190f-b7f8a6d000000914-d2-4f97fe95d406\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
23         by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id EC.0F.02324.59EF79F4; Wed, 25 Apr 2012 09:39:33 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q3PDdWej024970; \r
27         Wed, 25 Apr 2012 09:39:32 -0400\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q3PDdU1F009304\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Wed, 25 Apr 2012 09:39:31 -0400 (EDT)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1SN2RO-0001gp-Nr; Wed, 25 Apr 2012 09:39:30 -0400\r
37 From: Austin Clements <amdragon@MIT.EDU>\r
38 To: Justus Winter <4winter@informatik.uni-hamburg.de>,\r
39         Felipe Contreras <felipe.contreras@gmail.com>\r
40 Subject: Re: [PATCH 6/7] ruby: Use notmuch_database_destroy instead of\r
41         notmuch_database_close\r
42 In-Reply-To: <20120423124946.31231.53523@thinkbox.jade-hamburg.de>\r
43 References: <20120422120620.26225.40778@thinkbox.jade-hamburg.de>\r
44         <1335096477-27537-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
45         <1335096477-27537-6-git-send-email-4winter@informatik.uni-hamburg.de>\r
46         <CAMP44s0KHJz6AxUfRjEUk5heOEFVyT2NixpFNb5GZakXaoLAKw@mail.gmail.com>\r
47         <20120423124946.31231.53523@thinkbox.jade-hamburg.de>\r
48 User-Agent: Notmuch/0.12+132~gf2f390b (http://notmuchmail.org) Emacs/23.3.1\r
49         (i486-pc-linux-gnu)\r
50 Date: Wed, 25 Apr 2012 09:39:30 -0400\r
51 Message-ID: <87obqggcbx.fsf@awakening.csail.mit.edu>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 X-Brightmail-Tracker:\r
55  H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsUixCmqrDv133R/gxcrLSxmt/5gsjj4OM/i\r
56         +s2ZzA7MHjtn3WX3mHj+NJvHs1W3mAOYo7hsUlJzMstSi/TtErgyFr45wF7wir1i35X3zA2M\r
57         i9m6GDk5JARMJCbc/cYCYYtJXLi3HiwuJLCPUWLvxKIuRi4gewOjxMvWL2wQzkkmiSUrvrJC\r
58         OEsYJT4tXwXWwiagIbFt/3JGEFtEIFfi6eRWJhCbWUBa4tvvZjBbWCBW4v/lC8wgNqeAk8SO\r
59         9+9YIAadYJKY+W0WWLOoQLzEn97NYENZBFQlOu82gjXzAt365Go/I4QtKHFy5hMWiAVaEjf+\r
60         vWSawCg4C0lqFpLUAkamVYyyKblVurmJmTnFqcm6xcmJeXmpRbomermZJXqpKaWbGMHhK8m/\r
61         g/HbQaVDjAIcjEo8vLP3TvMXYk0sK67MPcQoycGkJMp7+Nd0fyG+pPyUyozE4oz4otKc1OJD\r
62         jBIczEoivC9eAuV4UxIrq1KL8mFS0hwsSuK8alrv/IQE0hNLUrNTUwtSi2CyMhwcShK8V/8C\r
63         NQoWpaanVqRl5pQgpJk4OEGG8wAN/whSw1tckJhbnJkOkT/FqCglzrsJJCEAksgozYPrhaWX\r
64         V4ziQK8I8+4BqeIBpia47ldAg5mABn8LmgYyuCQRISXVwBhy9IuALcOHRcmB124sfD3RksPQ\r
65         Ocl1y5wM8cyXR4onJV5Wiz9/ykHT9aFQYK6D/ZMLbcz7l1hVqanb2Nb9vs/7+WqI3JZv17nT\r
66         9RO7nG/lJ36uFsv+UMifX3qU/V2YxBrNhT6MO3qsU0vSFCYHhJk56rYVffJ7PJ3nmlWI1KFF\r
67         p9209h4JVWIpzkg01GIuKk4EAO904YcKAwAA\r
68 Cc: notmuch@notmuchmail.org\r
69 X-BeenThere: notmuch@notmuchmail.org\r
70 X-Mailman-Version: 2.1.13\r
71 Precedence: list\r
72 List-Id: "Use and development of the notmuch mail system."\r
73         <notmuch.notmuchmail.org>\r
74 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
75         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
76 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
77 List-Post: <mailto:notmuch@notmuchmail.org>\r
78 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
79 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
80         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
81 X-List-Received-Date: Wed, 25 Apr 2012 13:39:35 -0000\r
82 \r
83 On Mon, 23 Apr 2012, Justus Winter <4winter@informatik.uni-hamburg.de> wrote:\r
84 > Quoting Felipe Contreras (2012-04-23 14:36:33)\r
85 >> I don't think this is the right approach. If database_destroy truly\r
86 >> destroys the object, then we would want to do it only at garbage\r
87 >> collection, when it's not accessible any more. What if I want to\r
88 >> re-use the database from the Ruby code?\r
89 >> \r
90 >> This would probably be better:\r
91 >> \r
92 >>[...]\r
93 >\r
94 > You're probably right, I don't know the ruby bindings at all, I just\r
95 > wanted to preserve the old behavior. You are welcome to refine the\r
96 > ruby bindings later (or maintain them, I *believe* they are\r
97 > unmaintained, the last change was back in october 2011), but let's get\r
98 > this patch series in first.\r
99 \r
100 I just marked this series ready, but I wasn't clear on what the\r
101 conclusion here was.  Feel free to mark it moreinfo again if it's not\r
102 actually ready (maybe mark just this patch?  it's a bit confusing since\r
103 the patches aren't quite all together.)\r