<!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">
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #3983C4; color:#3983C4; margin:0 0 5px; padding-left:5px"><p dir="auto">File in the MailMate bundle named `eventFilters.plist`. For experimenting</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Thanks. I will try experimenting. I think I get the basic eventFilter calls to bundle via UUID idea. Any help you can provide on what the current events mean, or point me to the one I should try hooking up to first would be appreciated.</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #3983C4; color:#3983C4; margin:0 0 5px; padding-left:5px"><p dir="auto">It could be very tricky to identify exactly where the signatures are located.</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Yes, I certainly am not going to try to do a generalized signature feature. Just routine junk I see all day (from my employer). And do something like:</p>
<p dir="auto"><code>start = message.indexOf('start of legal nonsense');<br>
end = message.indexOf(start, 'end of legal nonsense');<br>
if ( (end-start) between (100, 110)) {<br>
// strip it out<br>
}</code></p>
<p dir="auto">2017-06-13 10:00 EDT from Benny Kjær Nielsen:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #3983C4; color:#3983C4; margin:0 0 5px; padding-left:5px"><p dir="auto">On 13 Jun 2017, at 15:29, Padraic Renaghan wrote:<br>
</p>
<blockquote style="border-left:2px solid #3983C4; color:#7CBF0C; margin:0 0 5px; padding-left:5px; border-left-color:#7CBF0C"><p dir="auto">Any way to filter the message prior to loading it into the MM Web View?</p>
</blockquote><p dir="auto">Kind of...<br>
</p>
<blockquote style="border-left:2px solid #3983C4; color:#7CBF0C; margin:0 0 5px; padding-left:5px; border-left-color:#7CBF0C"><p dir="auto">Is that what the premailer is about?</p>
</blockquote><p dir="auto">Not quite. It's a filter, but premailer is about inlining CSS. This is needed, because HTML really wasn't designed to allow embedding one HTML email within another.<br>
</p>
<blockquote style="border-left:2px solid #3983C4; color:#7CBF0C; margin:0 0 5px; padding-left:5px; border-left-color:#7CBF0C"><p dir="auto">Can I customize that?</p>
</blockquote><p dir="auto">There's a file in the MailMate bundle named `eventFilters.plist`. For experimenting, you can use this to inject your own bundle commands, but there's currently no `html_to_html` event which is kind of what you need. I do think though that what you are trying to do might be harder than you think. It could be very tricky to identify exactly where the signatures are located.<br>
<br>
Note that I've played a bit with hiding sections. See `MmShowQuotedTextLimit` in [the manual](<a href="https://manual.mailmate-app.com/hidden_preferences#visual-appearance">https://manual.mailmate-app.com/hidden_preferences#visual-appearance</a>).<br>
<br>
-- <br>
Benny</p>
</blockquote><br><blockquote style="border-left:2px solid #3983C4; color:#3983C4; margin:0 0 5px; padding-left:5px"><p dir="auto">_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>