[PATCH] NEWS for emacs part visibility change
[notmuch-archives.git] / bc / 490b36c776b74091fdc0966a60c9bc20ab5955
1 Return-Path: <kaz.rag@gmail.com>\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 6A5BB431FD0\r
6         for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 13:58:45 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id yZKvLLIKZuwL for <notmuch@notmuchmail.org>;\r
17         Fri, 30 Dec 2011 13:58:44 -0800 (PST)\r
18 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
19         [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 81D4F431FB6\r
22         for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 13:58:44 -0800 (PST)\r
23 Received: by qcha6 with SMTP id a6so10990719qch.26\r
24         for <notmuch@notmuchmail.org>; Fri, 30 Dec 2011 13:58:43 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=lauABo9r4FwiAtE0C1cxn4KP7g1IqOPGWBSLsaZ7+4Q=;\r
28         b=FciZ7qpSVbnDFNURDu8pcaPhw7DtrUnObTk1msm+JN4U2GUWauSPc6hcZXlpBNj64T\r
29         xJPgFoXkxo3LcmZclkQlx4AzQO/B8An1TFCVmg+ADv6pZrtHyjP/t7cFKEL2axRWcgDN\r
30         +efTTfs/9PKdFLSrLUzjbw+dPdQIEny0XVfEA=\r
31 Received: by 10.229.75.144 with SMTP id y16mr15035739qcj.87.1325282323835;\r
32         Fri, 30 Dec 2011 13:58:43 -0800 (PST)\r
33 Received: from localhost.localdomain (201-1-35-143.dsl.telesp.net.br.\r
34         [201.1.35.143])\r
35         by mx.google.com with ESMTPS id z1sm74916346qao.1.2011.12.30.13.58.41\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Fri, 30 Dec 2011 13:58:43 -0800 (PST)\r
38 From: Kazuo Teramoto <kaz.rag@gmail.com>\r
39 To: notmuch@notmuchmail.org,\r
40         David Bremner <david@tethera.net>\r
41 Subject: [PATCH 0/2] Multiples calls of g_mime_init\r
42 Date: Fri, 30 Dec 2011 19:58:08 -0200\r
43 Message-Id: <1325282290-29565-1-git-send-email-kaz.rag@gmail.com>\r
44 X-Mailer: git-send-email 1.7.8.1\r
45 In-Reply-To: <877h1e6r9d.fsf@zancas.localnet>\r
46 References: <877h1e6r9d.fsf@zancas.localnet>\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Fri, 30 Dec 2011 21:58:45 -0000\r
60 \r
61 The gmime docs don't says if is ok to call g_mime_init multiple times,\r
62 but the code have a check for it in a form like this:\r
63 ~~~~~~~~\r
64 static unsigned int initialized = 0;\r
65 g_mime_init (guint32 flags)\r
66 {\r
67     if (initialized++)\r
68         return;\r
69 ~~~~~~~~\r
70 so the init code is run only once and notmuch don't need to explicit\r
71 check for an already initialized gmime.\r
72 \r
73 This make possible to call g_mime_init again in lib/database.cc and this\r
74 call really solve the OP segmentation fault in python bindings.\r
75 \r
76 Kazuo Teramoto (2):\r
77   lib: Remove unnecessary checks when calling g_mime_init\r
78   lib: call g_mime_init from notmuch_database_open\r
79 \r
80  lib/database.cc    |    5 +++++\r
81  lib/index.cc       |    4 ----\r
82  lib/message-file.c |    4 ----\r
83  3 files changed, 5 insertions(+), 8 deletions(-)\r
84 \r
85 -- \r
86 1.7.8.1\r
87 \r