From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 519816DE0207 for ; Fri, 1 Feb 2019 11:33:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=-0.004, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q4uU_-I8b4FS for ; Fri, 1 Feb 2019 11:33:38 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 491E66DE0204 for ; Fri, 1 Feb 2019 11:33:38 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1gpeZC-0007A7-2B; Fri, 01 Feb 2019 14:33:34 -0500 Received: (nullmailer pid 15423 invoked by uid 1000); Fri, 01 Feb 2019 19:33:32 -0000 From: David Bremner To: Alvaro Herrera Cc: notmuch@notmuchmail.org Subject: Re: BUG: "notmuch insert" fails with "Delivery of non-mail file" In-Reply-To: <201901211953.q5nxxkrlghgp@alvherre.pgsql> References: <201901211953.q5nxxkrlghgp@alvherre.pgsql> Date: Fri, 01 Feb 2019 15:33:32 -0400 Message-ID: <87d0obl2wj.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Fri, 01 Feb 2019 19:33:39 -0000 Alvaro Herrera writes: > I'm not sure I follow. As I understand, notmuch does not work with > mboxes, only with maildirs, so the behavior of splitting emails at "From > " is not strictly necessary, since one file always equals one message. Checking for mboxes was added as a safety feature since people found indexing large mboxes led to bad results (bloated index, crashing indexer, etc...). > On the other hand, in my world, it's been quite a while since 'From ' > was considered a useful message separator. This stopped being true in a > pretty extensive way when git-format-patches messages started being > posted as attachments. Sure. Things on disk should either be mboxes, or not. If they start with 'From ', they are mboxes. We attempted to take away support for single message mboxes, but people complained even more about that. So generally, if tools / users don't want to escape 'From ' after the first line, the first line should not be 'From '. My original question was whether notmuch-insert should strip the 'From ' (and presumbly save as a normal header) before delivery. d