* 2020-12-31 17:39:23-0500, Daniel Kahn Gillmor wrote: > On Wed 2020-12-30 12:46:02 +0200, Teemu Likonen wrote: >> What about forwarding a message as MIME part which is just "text/plain" >> (and not "message/rfc822")? > > This might be useful for some people, but doesn't really satisfy my > goals. When i want to forward a message, i want to forward the whole > message -- multipart, with attachments, etc. My goal when forwarding is > to *not* mangle the message, but rather to supply it to the new > recipient in a parseable way. I just don't think that most recipients > need to have access to (for example) the headers that are added by all > the mail transport agents along my receipt path. I want them filtered > for privacy, which i think isn't unreasonable. OK, that is reasonable. Somehow I thought that you wanted a pretty-printed message (old inline style) but still valid email form. But yes, it would be nice to filter headers like "Received", maybe "DKIM-Signature" and various unofficial headers starting with "X-". For a quick first step I would probably try running "C-u M-|" (shell-command-on-region) in Emacs and pipe the forwarded message through command like this: formail -I Received -I DKIM-Signature -I X-Whatever Probably after that I would integrate that shell command call in one Emacs command and then implement the functionality in Emacs Lisp. But so far I haven't cared enough. -- /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450