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

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

Date: Mon, 14 Feb 2022 07:16:58 -0400

To: NeilBrown


From: David Bremner

"NeilBrown" <> writes:

> On Sat, 12 Feb 2022, David Bremner wrote:
>> This is a bit rough and ready, but before I fine tune it, I want to
>> make sure the overall idea of stripping envelope headers in
>> notmuch-insert makes sense.
> I think that it would be highly inappropriate to modify the message
> passed to notmuch-insert AT ALL.
> It *might* be appropriate to check that it looks generally like an email
> message (e.g.  headers followed by a blank line), but changing it would
> be wrong.

Here we're just changing "From  foo" into "X-Envelope-From: foo",
so no information is lost, unless you consider being an mbox file

> Why do you think it might be helpful?

Currently we throw an error from notmuch-insert when trying to index
those mbox files (as passed to notmuch-insert by postfix). This means
the message is either bounced or (with --keep), invisible in the notmuch


notmuch mailing list --
To unsubscribe send an email to