"NeilBrown" <neilb@suse.de> 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 information. > 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 index. d _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org