<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">For whatever it's worth, another application of javascript in MM web view executed on plain-text messages is rendering equations. My friends often send me markdown sprinkled with latex, and if I could run mathjax in MM web view, this would make a lot of my email <em>way</em> more readable. Nicely rendered equations instead of stuff like <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">$g_{i,j}(z) = f(z|_{S_{i}})$</code> scattered all over would make my life a lot easier. Heck, this would probably help me sell a few copies of mailmate -- email with readable equations is a killer feature for mathematicians, and currently there's <em>no</em> good solution for this anywhere.</p>
<p dir="auto">In a perfect world, I could also render equations using mathjax in the preview window, so I can see my own messages with the equations rendered nicely as I type them.</p>
<p dir="auto">Something to think on. Very limited audience for this kind of feature, but we'd be very enthusiastic.</p>
<p dir="auto">cheers,</p>
<p dir="auto">-- marco</p>
<p dir="auto">On 13 Jun 2017, at 6:36, Verdon Vaillancourt wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">oh god, if you can find a way to get rid of signature noise, please share!<br>
<br>
On 13 Jun 2017, at 9:29, Padraic Renaghan wrote:<br>
</p>
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999"><p dir="auto">Totally understand not wanting to enable javascript in the message view. Certainly can't trust senders to run javascript they provide.<br>
<br>
Maybe there is another way to do what I am trying to accomplish...<br>
<br>
My company adds a ridiculous 20 line legal footer to all emails. Makes reading them noisy, especially when a thread gets a few replies, and every reply gets another 20 legal footer. So I was going to use javascript to identify those blocks and "display:hide" them.<br>
<br>
Is there another way to do that?<br>
Any way to filter the message prior to loading it into the MM Web View?<br>
Is that what the premailer is about?<br>
Can I customize that?<br>
<br>
Thanks,<br>
Padraic<br>
<br>
2017-06-13 05:44 EDT from Benny Kjær Nielsen:<br>
</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">On 12 Jun 2017, at 18:59, Padraic Renaghan wrote:<br>
</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">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.</p>
</blockquote><p dir="auto">Javascript is currently always disabled for the message view.<br>
</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">I did it for headers with the headersFormatting.plist using the prefix. This seems to work well.</p>
</blockquote><p dir="auto">The HTML generated for the headers view is under my control and therefore it is safer to allow Javascript.<br>
</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">Any way to do this for the main message view?</p>
</blockquote><p dir="auto">Not currently.<br>
</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">If not, possible new advanced feature?</p>
</blockquote><p dir="auto">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.<br>
<br>
-- <br>
Benny<br>
_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#BBB">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote><p dir="auto">_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#999">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote><p dir="auto">_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#777">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>