It would be nice if mpop could, on the fly, transform (headers of) emails. Something like a transform prog option that runs prog with the email on stdin, and uses the stdout as the transformed email.
Rationale: I'm fetching emails from an Outlook server, and storing them on a private server (maildir). Gmail is then accessing my private server and fetching these. Problematically, Outlook adds "Received" headers, and Gmail complains that Outlook is not a permitted sender for whichever address the email originated from. I'd like to "sanitize" the email by flushing the "Received" headers from Outlook.
It would be nice if mpop could, on the fly, transform (headers of) emails. Something like a
transform progoption that runsprogwith the email on stdin, and uses the stdout as the transformed email.Rationale: I'm fetching emails from an Outlook server, and storing them on a private server (maildir). Gmail is then accessing my private server and fetching these. Problematically, Outlook adds "Received" headers, and Gmail complains that Outlook is not a permitted sender for whichever address the email originated from. I'd like to "sanitize" the email by flushing the "Received" headers from Outlook.