Re: WIP: filter out envelope headers in notmuch-insert.

Subject: Re: WIP: filter out envelope headers in notmuch-insert.

Date: Mon, 14 Feb 2022 19:52:56 -0400

To: NeilBrown


From: David Bremner

"NeilBrown" <> writes:

> On Mon, 14 Feb 2022, David Bremner wrote:
> If notmuch-insert is given an 'mbox', shouldn't it either reject it, or
> split it up into individual messages and insert each one individually
> (discarding the "From" line because it shouldn't add any new
> information)?

I guess you could think of what the patch does as a conservative version
of that.  I'm not aware of any case where a "real" mbox with multiple
messages is passed to notmuch-insert. So the modification effectively
discards the From line, although keeping the contents, because who knows
what people rely on.

> I don't suppose there is some config option to postfix to tell it to
> provide an RFC-2822 email message, not an mbox ???

It seems not, at least for the case of invoking notmuch-insert via a
.forward file, which I would guess is the most common case (nothing
specific to postfix, it's just the obvious way to invoke

notmuch mailing list --
To unsubscribe send an email to