From: David Bremner Date: Sun, 31 Aug 2014 14:41:42 +0000 (+1700) Subject: Re: How to debug 'ignoring non-mail file' issues X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6835f5294dfdade7d749a0bdefaf93a4e3c482ac;p=notmuch-archives.git Re: How to debug 'ignoring non-mail file' issues --- diff --git a/e4/392458f0e6a66e0b44285736ce539d408e92c3 b/e4/392458f0e6a66e0b44285736ce539d408e92c3 new file mode 100644 index 000000000..788e61646 --- /dev/null +++ b/e4/392458f0e6a66e0b44285736ce539d408e92c3 @@ -0,0 +1,70 @@ +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 1BC1E431FBD + for ; Sun, 31 Aug 2014 07:42:01 -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 jiPaUOrH+Cpr for ; + Sun, 31 Aug 2014 07:41:53 -0700 (PDT) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3E429431FAE + for ; Sun, 31 Aug 2014 07:41:53 -0700 (PDT) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1XO6KB-000145-Gj; Sun, 31 Aug 2014 11:41:47 -0300 +Received: (nullmailer pid 23702 invoked by uid 1000); Sun, 31 Aug 2014 + 14:41:42 -0000 +From: David Bremner +To: Perttu Luukko , notmuch@notmuchmail.org +Subject: Re: How to debug 'ignoring non-mail file' issues +In-Reply-To: <20140831074059.GA13399@rakuuna.dhcp.inet.fi> +References: <20140831074059.GA13399@rakuuna.dhcp.inet.fi> +User-Agent: Notmuch/0.18.1+72~g028c560 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sun, 31 Aug 2014 07:41:42 -0700 +Message-ID: <87tx4ssoux.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +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: Sun, 31 Aug 2014 14:42:01 -0000 + +Perttu Luukko writes: + + +> The vast majority of these ignored mails are not ignored after I +> transfer them with offlineimap to another computer. I can non-ignore +> these files probably by copying the renamed file back to the mail +> server, so this is fixable. Offlineimap shouldn't mess with the file's +> contents, so is there something that can cause notmuch to ignore a file +> based on its name? + +The most likely cause is that the files are mboxes, whether intentional +or not. In particular if they start with a "From " (note the lack of :) +and contain a second "From " at the beginning of a line later in the +file. In this case something like sed can replace the initial +"From " with "X-Envelope-From: ". + +I agree that the error message could be more informative in this case. + +d