Re: [PATCH 0/2] Multiples calls of g_mime_init
authorKazuo Teramoto <kaz.rag@gmail.com>
Sat, 31 Dec 2011 09:30:28 +0000 (09:30 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:27 +0000 (09:41 -0800)
d9/af159b2e0be4e5b43a20255b4a1a870987086b [new file with mode: 0644]

diff --git a/d9/af159b2e0be4e5b43a20255b4a1a870987086b b/d9/af159b2e0be4e5b43a20255b4a1a870987086b
new file mode 100644 (file)
index 0000000..77f7549
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <kaz.rag@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6951E431FD0\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 17:30:33 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Date"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.367\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.367 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, INVALID_DATE=0.432, RCVD_IN_DNSWL_LOW=-0.7]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Tn6HxpQjo9Ls for <notmuch@notmuchmail.org>;\r
+       Fri, 30 Dec 2011 17:30:33 -0800 (PST)\r
+Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
+       [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0C9AD431FB6\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 17:30:33 -0800 (PST)\r
+Received: by qcha6 with SMTP id a6so11060464qch.26\r
+       for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 17:30:32 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=content-type:mime-version:content-transfer-encoding:from:to\r
+       :references:in-reply-to:date:message-id:subject:date;\r
+       bh=BUg4j47+YHQI89FIfziZRly32Z97ezvoFRydmKWtNrM=;\r
+       b=qOkmUCQ3PrnXAYNZcwvyR4LzAg6p+eDllaoFdlheUS/v96Nr0YnLgNNvrEks22Aq6f\r
+       2zwenD/DUrRGq8f3QKFHyM+AMn7Qo0xjy4u3TgqIaqaqfhwvuVj+Roe4D/IFZXOdc/6f\r
+       6MaQmYS5HxiTxh4QOHiU8LimLeEf1FQKv8Q7o=\r
+Received: by 10.229.136.83 with SMTP id q19mr15144451qct.145.1325295032376;\r
+       Fri, 30 Dec 2011 17:30:32 -0800 (PST)\r
+Received: from localhost (201-1-35-143.dsl.telesp.net.br. [201.1.35.143])\r
+       by mx.google.com with ESMTPS id el7sm75917603qab.16.2011.12.30.17.30.30\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 30 Dec 2011 17:30:31 -0800 (PST)\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+From: Kazuo Teramoto <kaz.rag@gmail.com>\r
+To: Patrick Totzke <patricktotzke@googlemail.com>, notmuch@notmuchmail.org,\r
+       David Bremner <david@tethera.net>\r
+References: <877h1e6r9d.fsf@zancas.localnet>\r
+       <1325282290-29565-1-git-send-email-kaz.rag@gmail.com>\r
+       <20111231011647.24112.70437@brick.lan>\r
+In-Reply-To: <20111231011647.24112.70437@brick.lan>\r
+Date: Sat, 31 Dec 2011 01:30:28 -0000\r
+Message-ID: <20111231013028.14545.79903@sophie>\r
+Subject: Re: [PATCH 0/2] Multiples calls of g_mime_init\r
+Date: Fri, 30 Dec 2011 23:30:28 -0200\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 31 Dec 2011 01:30:33 -0000\r
+\r
+On 2011-12-30T23:16:47, Patrick Totzke wrote:\r
+\r
+>It seeminly doesn't break things either and I'm all in favour of doing\r
+>things right=E2=84=A2.\r
+\r
+And talking about doing things right, we probably need to call\r
+g_mime_shutdown() too, one for every time we call g_mime_init(). I will\r
+send a patch after I do some more tests.\r
+\r
+>On a related note: It also doesn't fix the recent segfaults of the bindings\r
+>that occur when you try to write to a locked database.\r
+>cf "id:4eddf2b1.4288980a.0b74.5557@mx.google.com"\r
+>\r
+\r
+This still hit me. If I remember right when I did a test what is\r
+happening is that the binding is trying to close the db, so we need a\r
+check if the db is opened before trying to close it.\r