[MlMt] How can I save the HTML part of an email so that I can open in a browser or text editor?

Charlie Clark charlie at begeistert.org
Wed Mar 2 02:52:35 EST 2022


On 2 Mar 2022, at 3:20, Quinn Comendant wrote:

> That's what I've been doing, but it's not convenient because the raw email part will be either base64 or quoted-printable encoded, which is not easy to decode. Base64 is easy to decode, but it seems to be less common. I'm not sure how to decode quoted-printable correctly.
>
> The reason I want to extract HTML messages is to analyze them to improve the spam filtering on the mail servers I manage, and it's really useful to be able to access the html.

You might want to look at how the plugins work. The e-mails themselves should be available as text files and lots of programming languages have e-mail processing libraries that you could pass the e-mails to. This would let you strip out the HTML for further processing.

Charlie

--
Charlie Clark
Sengelsweg 34
Düsseldorf
D- 40489
Tel: +49-203-746000
Mobile: +49-178-782-6226


More information about the mailmate mailing list