Re: [PATCH v4 09/16] index encrypted parts when asked.
[notmuch-archives.git] / 2e / d8e60e1bdae9addaa32af9faaa2e36d48a940a
1 Return-Path: <perttu.luukko@iki.fi>\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 2E131431FBD\r
6         for <notmuch@notmuchmail.org>; Sun, 31 Aug 2014 00:41:20 -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 SgODyZheZYV4 for <notmuch@notmuchmail.org>;\r
16         Sun, 31 Aug 2014 00:41:15 -0700 (PDT)\r
17 Received: from mail.kapsi.fi (mail.kapsi.fi [217.30.184.167])\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 6D074431FB6\r
21         for <notmuch@notmuchmail.org>; Sun, 31 Aug 2014 00:41:15 -0700 (PDT)\r
22 Received: from dsl-jklbrasgw1-54fb12-136.dhcp.inet.fi ([84.251.18.136]\r
23         helo=localhost)\r
24         by mail.kapsi.fi with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16)\r
25         (Exim 4.72) (envelope-from <perttu.luukko@iki.fi>)\r
26         id 1XNzl1-0001m9-4R\r
27         for notmuch@notmuchmail.org; Sun, 31 Aug 2014 10:41:03 +0300\r
28 Date: Sun, 31 Aug 2014 10:40:59 +0300\r
29 From: Perttu Luukko <perttu.luukko@iki.fi>\r
30 To: notmuch@notmuchmail.org\r
31 Subject: How to debug 'ignoring non-mail file' issues\r
32 Message-ID: <20140831074059.GA13399@rakuuna.dhcp.inet.fi>\r
33 MIME-Version: 1.0\r
34 Content-Type: text/plain; charset=us-ascii\r
35 Content-Disposition: inline\r
36 User-Agent: Mutt/1.5.22.1 (2013-10-16)\r
37 X-SA-Exim-Connect-IP: 84.251.18.136\r
38 X-SA-Exim-Mail-From: perttu.luukko@iki.fi\r
39 X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Sun, 31 Aug 2014 07:41:20 -0000\r
53 \r
54 Hi,\r
55 \r
56 I indexed my archive of emails from recent years with notmuch (about 10k\r
57 messages so not much). I have quite a lot of messages 'notmuch new'\r
58 ignores as non-mail files, about 1000 of them. They are not obviously\r
59 malformed, meaning that the files certainly look like emails when opened\r
60 in a text editor. I'd like to find out why these files are ignored, and\r
61 if there is something I can do to fix them. Of course I'd like to have a\r
62 complete database of my old emails, with nothing falling through the\r
63 cracks like this.\r
64 \r
65 The vast majority of these ignored mails are not ignored after I\r
66 transfer them with offlineimap to another computer. I can non-ignore\r
67 these files probably by copying the renamed file back to the mail\r
68 server, so this is fixable. Offlineimap shouldn't mess with the file's\r
69 contents, so is there something that can cause notmuch to ignore a file\r
70 based on its name?\r
71 \r
72 Looking at the rest of the ignored messages most of them seem to have\r
73 very large attachments, but there are possibly others. There is only\r
74 maybe 20 of these kinds of emails so I can try to fix them manually.\r
75 Still, it would help if I knew what exactly caused notmuch to ignore the\r
76 file. I understand most of the message parsing is done with gmime. Does\r
77 gmime give any diagnostics on parse errors that could be used to give a\r
78 reason for thinking a file is not mail?\r
79 \r
80 I understand that the list of non-mail files is stored in the notmuch\r
81 database and the files are completely ignored from there on. This\r
82 actually makes it harder to debug these kind of issues since the list of\r
83 ignored mails is only visible on the first invocation of 'notmuch new',\r
84 unless the files are moved around. Is there some way to extract the list\r
85 of ignored files from the database for inspection? Maybe 'notmuch new'\r
86 could have some kind of --unignore-non-mail switch that would reconsider\r
87 previously ignored files.\r
88 \r
89 -- \r
90 Perttu Luukko\r