[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 3e / 25dc9c84e9e71f2a2de12a26518a2ee2af55c7
1 Return-Path: <bremner@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 olra.theworths.org (Postfix) with ESMTP id 97BC7431FD0\r
6         for <notmuch@notmuchmail.org>; Sat, 31 Dec 2011 19:22:57 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 NwDwkeKm82IQ for <notmuch@notmuchmail.org>;\r
16         Sat, 31 Dec 2011 19:22:57 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1B58A431FB6\r
21         for <notmuch@notmuchmail.org>; Sat, 31 Dec 2011 19:22:57 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id q013MrkE017589\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO)\r
27         for <notmuch@notmuchmail.org>; Sat, 31 Dec 2011 23:22:53 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@tethera.net>) id 1RhC0a-0002D3-PE\r
30         for notmuch@notmuchmail.org; Sat, 31 Dec 2011 23:22:52 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: revised patch for gmime init, with test.\r
34 Date: Sat, 31 Dec 2011 23:22:46 -0400\r
35 Message-Id: <1325388169-8444-1-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.7.3\r
37 In-Reply-To: <1325306261-21444-2-git-send-email-kaz.rag@gmail.com>\r
38 References: <1325306261-21444-2-git-send-email-kaz.rag@gmail.com>\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Sun, 01 Jan 2012 03:22:57 -0000\r
52 \r
53 It turns out that our existing (trivial) python test is enough to\r
54 catch this bug, but the corpus needs to be augmented.  This\r
55 augmentation is a bit intrusive so I'm thinking of cherry-picking only\r
56 the actual fix to the release branch.\r
57 \r
58 Unfortunately the test message is 8 bit, so it may be encoded in some\r
59 inconvenient way for patch application. The message is attached to an\r
60 earlier message in the thread if you want to double check.\r
61 \r
62 I also wondered about putting g_type_init inside the (!initialized)\r
63 test, but decided against it on the grounds of minimality.\r
64 \r
65 I think we want to in the medium term factor out all of the\r
66 initialization code into one (probably private) function; we can clean\r
67 things up a bit more then.\r
68 \r