Re: notmuch and "mute" -- useful to anyone?
[notmuch-archives.git] / 07 / f71ba9f13bb50c597f94e5b4e7c5b6ab6f1681
1 Return-Path: <bremner@unb.ca>\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 97330431FB6\r
6         for <notmuch@notmuchmail.org>; Thu,  8 Mar 2012 10:09:12 -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\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 2HS+lyYm4CwL for <notmuch@notmuchmail.org>;\r
16         Thu,  8 Mar 2012 10:09:11 -0800 (PST)\r
17 Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
18         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 200C1431FAE\r
21         for <notmuch@notmuchmail.org>; Thu,  8 Mar 2012 10:09:11 -0800 (PST)\r
22 Received: from fctnnbsc30w-142166230117.dhcp-dynamic.fibreop.nb.bellaliant.net\r
23         ([142.166.230.117] helo=zancas.localnet)\r
24         by tesseract.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32)\r
25         (Exim 4.72) (envelope-from <bremner@unb.ca>)\r
26         id 1S5hlx-0006Hv-UM; Thu, 08 Mar 2012 14:09:10 -0400\r
27 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
28         (envelope-from <bremner@unb.ca>)\r
29         id 1S5hlX-0002ZG-KQ; Thu, 08 Mar 2012 14:08:39 -0400\r
30 From: David Bremner <david@tethera.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: Re: [WIP PATCH] debugging gmime-2.6 fail.\r
33 In-Reply-To: <1331220935-6553-1-git-send-email-david@tethera.net>\r
34 References: <87wr6xmlml.fsf@zancas.localnet>\r
35         <1331220935-6553-1-git-send-email-david@tethera.net>\r
36 User-Agent: Notmuch/0.11.1+266~g2432425 (http://notmuchmail.org) Emacs/23.3.1\r
37         (x86_64-pc-linux-gnu)\r
38 Date: Thu, 08 Mar 2012 14:08:39 -0400\r
39 Message-ID: <87eht3m0d4.fsf@zancas.localnet>\r
40 MIME-Version: 1.0\r
41 Content-Type: multipart/mixed; boundary="=-=-="\r
42 X-Spam_bar: -\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Thu, 08 Mar 2012 18:09:12 -0000\r
56 \r
57 --=-=-=\r
58 \r
59 On Thu,  8 Mar 2012 11:35:35 -0400, David Bremner <david@tethera.net> wrote:\r
60 \r
61 \r
62 > I ran out of time for the moment, but the following patch gets me down from \r
63 > 4196 failures on the notmuch mailing list to 3422.\r
64 \r
65 That patch is of course complete nonsense. Attached is another silly\r
66 patch, which at least demonstrates the problem. With the attached patch,\r
67 notmuch (+ gmime-2.6) only fails for non-mbox messages. So I guess we\r
68 need a way to detect if a file is mbox before parsing? or a way to get\r
69 gmime to be less strict here?\r
70 \r
71 \r
72 --=-=-=\r
73 Content-Type: text/x-diff\r
74 Content-Disposition: inline;\r
75  filename=0001-WIP-debugging-gmime-2.6-problems.patch\r
76 \r
77 >From 7fb942049ae68e09ebb9fbca40048f95543ab4b8 Mon Sep 17 00:00:00 2001\r
78 From: David Bremner <bremner@debian.org>\r
79 Date: Thu, 8 Mar 2012 11:11:21 -0400\r
80 Subject: [PATCH] WIP debugging gmime-2.6 problems\r
81 \r
82 Unconditionally tell gmime to look for an mbox. This of course makes\r
83 it fail for non-mboxes.\r
84 ---\r
85  mime-node.c |    2 ++\r
86  1 files changed, 2 insertions(+), 0 deletions(-)\r
87 \r
88 diff --git a/mime-node.c b/mime-node.c\r
89 index a95bdab..3e07fbf 100644\r
90 --- a/mime-node.c\r
91 +++ b/mime-node.c\r
92 @@ -111,7 +111,9 @@ mime_node_open (const void *ctx, notmuch_message_t *message,\r
93         goto DONE;\r
94      }\r
95  \r
96 +    g_mime_parser_set_scan_from(mctx->parser, TRUE);\r
97      mctx->mime_message = g_mime_parser_construct_message (mctx->parser);\r
98 +\r
99      if (!mctx->mime_message) {\r
100         fprintf (stderr, "Failed to parse %s\n", filename);\r
101         status = NOTMUCH_STATUS_FILE_ERROR;\r
102 -- \r
103 1.7.9.1\r
104 \r
105 \r
106 --=-=-=--\r