I’m looking for ways to anonymize e-mail that I archive in EagleFiler. Scripts, eml editing tools or the like.
Due to GDPR and corresponding new policies for e-mail at my workplace I’m looking into using EagleFiler to archive those e-mails I would like to keep for reference. But in most cases the personal information (sender, recipients, names or identifiers in the text of the e-mail etc.) is not what is important to keep, and then I’m not allowed to keep them. Thus I would like to be able to scrub this information from the e-mails before or right after archiving.
I realize I could store only the contents, by selecting the text and importing that instead of the complete mail. But then I lose the subject and also the date, both of which are often important for context. So my hope is that someone has some workflow ideas or pointers to useful tools that would allow me to store anonymized copies of e-mail in EagleFiler.
Unfortunately this isn’t an easy task. EagleFiler itself gives me the opportunity to change the metadata of archived eml-files, so I can use that to clear out the “From” column, and remove names or other personal details from the title (and file name). But the content of the message is not editable inside EagleFiler, nor is the sender/subject actually changed in the eml-file. I can open the file in an external editor, but that works well only when the mail is in plain text, for html multipart e-mail it is harder and for base64 encoded content it is even worse.
I started sketching on a workflow where I use KeyboardMaestro to tell Mail to forward the message so a new draft is created, and then convert the draft to plain text, and pass it through a script that made some crude attempts at automatic anonymization of the complete mail based on the sender and recipients. This draft could then be edited further and at last imported to EagleFiler, but it would get the date of when the draft was created, not when the original e-mail was received …
Any ideas on a better workflow?