unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Leo L. Schwab" <ewhac@ewhac.org>
To: notmuch@notmuchmail.org
Subject: Re: BUG: "notmuch insert" fails with "Delivery of non-mail file"
Date: Wed, 6 Mar 2019 22:57:35 -0800	[thread overview]
Message-ID: <20190307065735.GA5876@ewhac.org> (raw)
In-Reply-To: <201901181607.4rba4c5uyimv@alvherre.pgsql>

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

  parent reply	other threads:[~2019-03-07  7:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-18 16:07 BUG: "notmuch insert" fails with "Delivery of non-mail file" Alvaro Herrera
2019-01-19 18:17 ` David Bremner
2019-01-21 19:53   ` Alvaro Herrera
2019-02-01 19:33     ` David Bremner
2019-03-07  6:57 ` Leo L. Schwab [this message]
2019-03-07 21:05   ` David Bremner
2019-03-07 22:03     ` Alvaro Herrera
2019-03-07 22:34       ` David Bremner
2019-03-08  0:51         ` Alvaro Herrera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190307065735.GA5876@ewhac.org \
    --to=ewhac@ewhac.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).