Re: Problem with draft mails when using offlineimap
[notmuch-archives.git] / 44 / 5784ba8b49b8be7184817d021173312b1113b2
1 Return-Path: <tomi.ollila@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 56853431FC4\r
6         for <notmuch@notmuchmail.org>; Mon,  1 Sep 2014 00:48:58 -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 DdGkjz27equJ for <notmuch@notmuchmail.org>;\r
16         Mon,  1 Sep 2014 00:48:47 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 9E89E431FAE\r
19         for <notmuch@notmuchmail.org>; Mon,  1 Sep 2014 00:48:47 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 0BE14100090;\r
22         Mon,  1 Sep 2014 10:48:31 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Perttu Luukko <perttu.luukko@iki.fi>, David Bremner <david@tethera.net>\r
25 Subject: Re: How to debug 'ignoring non-mail file' issues\r
26 In-Reply-To: <20140901065220.GB3901@lakka.kapsi.fi>\r
27 References: <20140831074059.GA13399@rakuuna.dhcp.inet.fi>\r
28         <87tx4ssoux.fsf@maritornes.cs.unb.ca>\r
29         <20140901065220.GB3901@lakka.kapsi.fi>\r
30 User-Agent: Notmuch/0.18.1+76~g581776d (http://notmuchmail.org) Emacs/24.3.1\r
31         (x86_64-unknown-linux-gnu)\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
33         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
34         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
35 Date: Mon, 01 Sep 2014 10:48:30 +0300\r
36 Message-ID: <m28um3g4s1.fsf@guru.guru-group.fi>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 Cc: notmuch@notmuchmail.org\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: Mon, 01 Sep 2014 07:48:58 -0000\r
53 \r
54 On Mon, Sep 01 2014, Perttu Luukko <perttu.luukko@iki.fi> wrote:\r
55 \r
56 > On 2014-08-31 07:41:42, David Bremner wrote:\r
57 >> Perttu Luukko <perttu.luukko@iki.fi> writes:\r
58 >> > The vast majority of these ignored mails are not ignored after I\r
59 >> > transfer them with offlineimap to another computer. I can non-ignore\r
60 >> > these files probably by copying the renamed file back to the mail\r
61 >> > server, so this is fixable. Offlineimap shouldn't mess with the file's\r
62 >> > contents, so is there something that can cause notmuch to ignore a file\r
63 >> > based on its name?\r
64 >> \r
65 >> The most likely cause is that the files are mboxes, whether intentional\r
66 >> or not.  In particular if they start with a "From " (note the lack of :)\r
67 >> and contain a second "From " at the beginning of a line later in the\r
68 >> file. In this case something like sed can replace the initial \r
69 >> "From " with "X-Envelope-From: ".\r
70 >> \r
71 >> I agree that the error message could be more informative in this case.\r
72 >\r
73 > No, the mails do contain "From: " with the appropriate colon. If I\r
74 > understood correctly notmuch returns the same "not mail" return code\r
75 \r
76 The question here is whether the very first line of the mail file begins\r
77 with 'From ', not whether *any* of the actual header line starts with 'From: '\r
78 IIRC the mails get accepted even the 'From:' header were missing...\r
79 \r
80 > both when the essential headers are missing (so the file probably really\r
81 > isn't mail) and when GMime fails to parse the message. I think it would\r
82 > be a good idea to give a different warning in the latter case.\r
83 \r
84 Sure... :D\r
85 \r
86 >\r
87 > If the files really are ignored because of GMime it also explains why so\r
88 > much more files are ignored on my mail provider's server than on my\r
89 > laptop. The server probably has an older version of GMime. I'll upgrade\r
90 > and see if that makes a difference.\r
91 >\r
92 > -- \r
93 > Perttu\r
94 \r
95 \r
96 Tomi\r