[MlMt] Inject custom javascript into Message View

Benny Kjær Nielsen mailinglist at freron.com
Tue Jun 13 05:44:26 EDT 2017


On 12 Jun 2017, at 18:59, Padraic Renaghan wrote:

> What I'd really like to do is inject javascript. I tried making my own 
> version of basic.js, but that didn't seem to get injected.

Javascript is currently always disabled for the message view.

> I did it for headers with the headersFormatting.plist using the 
> prefix. This seems to work well.

The HTML generated for the headers view is under my control and 
therefore it is safer to allow Javascript.

> Any way to do this for the main message view?

Not currently.

> If not, possible new advanced feature?

Yes, but probably only for non-HTML emails and then I'm not sure it's 
really useful. I really don't want to go into the problem of sanitizing 
arbitrary HTML messages.

-- 
Benny


More information about the mailmate mailing list