Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 252F7431FB6 for ; Thu, 4 Sep 2014 04:01:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QWj3ak1pkqcJ for ; Thu, 4 Sep 2014 04:01:36 -0700 (PDT) Received: from mail.kapsi.fi (mail.kapsi.fi [217.30.184.167]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6AF5D431FAF for ; Thu, 4 Sep 2014 04:01:36 -0700 (PDT) Received: from lakka.kapsi.fi ([2001:1bc8:1004::1] ident=Debian-exim) by mail.kapsi.fi with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XPUn9-0002D2-IS for notmuch@notmuchmail.org; Thu, 04 Sep 2014 14:01:27 +0300 Received: from nuteater by lakka.kapsi.fi with local (Exim 4.80) (envelope-from ) id 1XPUn9-0008QU-C2 for notmuch@notmuchmail.org; Thu, 04 Sep 2014 14:01:27 +0300 Date: Thu, 4 Sep 2014 14:01:27 +0300 From: Perttu Luukko To: notmuch@notmuchmail.org Subject: Re: How to debug 'ignoring non-mail file' issues Message-ID: <20140904110127.GA17618@lakka.kapsi.fi> References: <20140831074059.GA13399@rakuuna.dhcp.inet.fi> <87oav0sj3f.fsf@maritornes.cs.unb.ca> <20140901064106.GA3901@lakka.kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140901064106.GA3901@lakka.kapsi.fi> User-Agent: Mutt/1.5.22.1 (2013-10-16) X-SA-Exim-Connect-IP: 2001:1bc8:1004::1 X-SA-Exim-Mail-From: perttu.luukko@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2014 11:01:40 -0000 On 2014-09-01 09:41:06, Perttu Luukko wrote: > Yes, that indeed works. I'll probably move these ignored files to a > separate folder for inspection. I looked at the mails that are still ignored after upgrading GMime to latest version, and I think I have found what they have in common. All of my ignored emails are from 2010-2011, and for some reason these mails contain a line like this: >From username Wed Sep 28 16:43:49 2011 somewhere among the headers. Note the '>' at the beginning of the line. The mails that are still ignored after upgrading GMime are those where this line happens to be the first line. Also, all of them have attachments for some reason. That line certainly doesn't look right, and I don't know where it came from. It might be some byproduct of mail redirection, since it shows my username, but the mails are not sent by me. I moved these problematic lines to the second line of each message, and now they are imported without problems. I probably won't file a bug for GMime because I have no idea whether this is just some oddity caused by my mail setup. Let this information reside here in case someone else has a similar problem. -- Perttu