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 CB8176DE0F37 for ; Wed, 6 Mar 2019 23:28:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.148 X-Spam-Level: X-Spam-Status: No, score=0.148 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, 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 Bp5suzZAPbPs for ; Wed, 6 Mar 2019 23:28:20 -0800 (PST) X-Greylist: delayed 1835 seconds by postgrey-1.36 at arlo; Wed, 06 Mar 2019 23:28:20 PST Received: from bosmailout07.eigbox.net (bosmailout07.eigbox.net [66.96.189.7]) by arlo.cworth.org (Postfix) with ESMTPS id 71A9C6DE0F17 for ; Wed, 6 Mar 2019 23:28:20 -0800 (PST) Received: from bosmailscan04.eigbox.net ([10.20.15.4]) by bosmailout07.eigbox.net with esmtp (Exim) id 1h1myN-0004mf-Cf for notmuch@notmuchmail.org; Thu, 07 Mar 2019 01:57:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ewhac.org; s=dkim; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID :Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cYaNk7dCoeUInQZeKH/nPlCE8Qw7NnSoIMa9DujuWYg=; b=0Eab1Ja/WyhOPLOWYFXxWihUz/ KARqzOEHbt3MkF3q0rwCZRkSfFN+lUO7hZn9oWX+x2YIBfeQ8nzqWxZVtl0roUTcDrU3FyfBGQlER DZma8B94EPPuFkai6Hi90xY/GrWvutXalSPjCwnLFrOsYEArquuxNw/lf6tSH6ejpRHi7nLa5phKC XPg2DYYXDw7MqNL422dy/yae2tz39wBXkgUv4BfMrwjt77Hp7yihjmoKQPBr0j6fCpWP6nFJiT5IH iqG9KNWPUqJLpWin5wny55+HlIJ+LUsiSM+bqRbWDPW3KD6YtCqPwVsZwHX5NjAkaivn96yMGtyn/ ad1KGw0w==; Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan04.eigbox.net with esmtp (Exim) id 1h1myN-0003wr-6n for notmuch@notmuchmail.org; Thu, 07 Mar 2019 01:57:43 -0500 Received: from bosauthsmtp18.yourhostingaccount.com ([10.20.18.18]) by bosimpout12 with id kuxg1z0040PPbB601uxjxN; Thu, 07 Mar 2019 01:57:43 -0500 X-Authority-Analysis: v=2.2 cv=OY7oNlbY c=1 sm=1 tr=0 a=hsonH7E3nOZjOFuRJksPKA==:117 a=AlhbU0oJh1g1IidadHq70w==:17 a=kj9zAlcOel0A:10 a=fmD_JHji_u0A:10 a=NTGMnVQrEZIA:10 a=3uLNjy69UukA:10 a=ui83Crkrlv-hwyn451QA:9 a=CjuIK1q_8ugA:10 a=HH7FIXwXL_sUf1zzYxQd:22 a=Ixuhb_GfD2BeaOSowo0a:22 Received: from ewhac.net ([173.228.113.24]:2650 helo=walkies.ewhac.org) by bosauthsmtp18.eigbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim) id 1h1myK-00053d-36 for notmuch@notmuchmail.org; Thu, 07 Mar 2019 01:57:40 -0500 Received: from ewhac by walkies.ewhac.org with local (Exim 4.92) (envelope-from ) id 1h1myF-0001np-PO for notmuch@notmuchmail.org; Wed, 06 Mar 2019 22:57:35 -0800 Date: Wed, 6 Mar 2019 22:57:35 -0800 From: "Leo L. Schwab" To: notmuch@notmuchmail.org Subject: Re: BUG: "notmuch insert" fails with "Delivery of non-mail file" Message-ID: <20190307065735.GA5876@ewhac.org> References: <201901181607.4rba4c5uyimv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201901181607.4rba4c5uyimv@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) X-EN-UserInfo: a76222b247b80e113a63936ffdc903eb:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: ewhac@ewhac.org Sender: "Leo L. Schwab" X-EN-OrigIP: 173.228.113.24 X-EN-OrigHost: ewhac.net X-Mailman-Approved-At: Thu, 07 Mar 2019 12:15:27 -0800 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: Thu, 07 Mar 2019 07:28:22 -0000 On Fri, Jan 18, 2019 at 01:07:35PM -0300, Alvaro Herrera wrote: > Not long ago I switched my mail setup to use notmuch insert via > mailfilter instead of good old procmail. However, since then a number > of emails are reported by notmuch as "non-mail", and appear to not be > indexed. (I use --keep, so they're still in my maildir). > I've been bumping in to the same problem. I converted 20+ years worth of mail to maildir format expressly so I could use notmuch. I almost didn't do it because the setup was so daunting (reconfigure system MTA/MDA to deliver in maildir instead of mbox; install, learn, and set up procmail and/or fetchmail to update the index; modify muttrc; blah blah blah...). And then I hit on the idea of creating a .forward file containing: "|/usr/bin/notmuch insert" Poof! Delivery and indexing in one step. The downside to this is that, if notmuch-insert fails with the above error, the MTA tries to bounce the message (so thanks *very* much for making me aware of the '--keep' option). As a result, I've been thinking how this might be addressed. The thought I've had is to create a new option to motmuch-insert that essentially means, "Skip all validation, just index and deliver." In other words, the input is presumed to have already been validated by an external entity, so assume it's good and index and deliver it. '--keep' effectively does this already, but it quashes *all* errors. I just want to skip the validator. I could probably kluge up a prototype if anyone thinks that's a reasonable idea. Thanks, Schwab