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

Quinn Comendant quinn at strangecode.com
Tue Mar 1 21:20:51 EST 2022


Thanks for both of your suggestions:

> Not direct save but you could change view to “Show HTML Source”, […]

Bill's correct, that won't give me access to the raw HTML.

> To get the HTML part of a multipart (or pure HTML) message, you need to use "Show Raw Message" […]

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.

Quinn


More information about the mailmate mailing list