Re: [PATCH] Omit User-Agent: header by default
[notmuch-archives.git] / 3f / 6d33cf8b6d0332715851098e084a3ee3cb0ee5
1 Return-Path: <teythoon@jade-hamburg.de>\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 943E7431FC2\r
6         for <notmuch@notmuchmail.org>; Tue, 14 Aug 2012 10:22: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: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 xm95IG9l+PeQ for <notmuch@notmuchmail.org>;\r
16         Tue, 14 Aug 2012 10:22:13 -0700 (PDT)\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id DF668431FAE\r
21         for <notmuch@notmuchmail.org>; Tue, 14 Aug 2012 10:22:12 -0700 (PDT)\r
22 Received: from mail.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
23         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
24         (No client certificate requested)\r
25         by mail.cryptobitch.de (Postfix) with ESMTPSA id 58BA85A9030\r
26         for <notmuch@notmuchmail.org>; Tue, 14 Aug 2012 19:22:11 +0200 (CEST)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 3B1FCDF2A4; Tue, 14 Aug 2012 19:22:11 +0200 (CEST)\r
29 Received: from thinkbox.jade-hamburg.de (unknown\r
30         [IPv6:2002:55b7:be4:1:213:e8ff:fe51:7a89])\r
31         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
32         (No client certificate requested) (Authenticated sender: teythoon)\r
33         by mail.jade-hamburg.de (Postfix) with ESMTPSA id 1D638DF2A1;\r
34         Tue, 14 Aug 2012 19:22:08 +0200 (CEST)\r
35 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.80)\r
36         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
37         id 1T1Koh-0004th-3I; Tue, 14 Aug 2012 19:22:07 +0200\r
38 Content-Type: text/plain; charset="utf-8"\r
39 MIME-Version: 1.0\r
40 Content-Transfer-Encoding: quoted-printable\r
41 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
42 User-Agent: alot/0.3.2+\r
43 To: Jani Nikula <jani@nikula.org>, Michal Nazarewicz <mina86@mina86.com>,\r
44         David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
45 References: <xa1tsjbyd8v4.fsf@mina86.com>\r
46  <87a9xx4yuj.fsf@maritornes.cs.unb.ca>  <xa1tk3x1psm2.fsf@mina86.com>\r
47  <87fw7p1viu.fsf@nikula.org>\r
48 In-Reply-To: <87fw7p1viu.fsf@nikula.org>\r
49 Message-ID: <20120814172206.12994.63545@thinkbox.jade-hamburg.de>\r
50 Subject:\r
51  =?utf-8?q?Re=3A_=E2=80=98class_Xapian=3A=3ADatabase=E2=80=99_has_no_membe?=\r
52         =?utf-8?q?r_named_=E2=80=98close=E2=80=99?=\r
53 Date: Tue, 14 Aug 2012 19:22:06 +0200\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Tue, 14 Aug 2012 17:22:13 -0000\r
67 \r
68 Quoting Jani Nikula (2012-08-14 14:57:13)\r
69 > > Is close() really required though?  The comment justifies it saying\r
70 > > that:\r
71 > >\r
72 > >       Many Xapian objects hold references to the database, so merely\r
73 > >       deleting the database may not suffice to close it.  Thus, we\r
74 > >       explicitly close it here.\r
75 > >\r
76 > > but wouldn't the database get closed when the last reference gets\r
77 > > deleted anyway?\r
78 \r
79 Yes, it is.\r
80 \r
81 > IIRC this was related to how closing is handled in the python\r
82 > bindings.\r
83 \r
84 Well this issue isn't in anyway specific to the python bindings, but\r
85 in c you can determine exactly whether a database has been closed\r
86 because this only happens if you explicitly destroy the database\r
87 object. In any garbage collected language you have to wait for the\r
88 object to be collected and this is usually not easy to detect.\r
89 \r
90 So we decided to explicitly close the database and to split\r
91 ..database_destroy in ..database_close and ..database_destroy later\r
92 on.\r
93 \r
94 Justus\r