<!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">On 23 Jun 2017, at 5:30, Padraic Renaghan wrote:</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">Benny, thinking it might be nice to run this filter when the reply to an existing message is created, so the reply does carry-forward all the junk. What would be the right event to hook my new filter into for that?</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">There's no simple answer for that. <em>If</em> you don't use the HTML embedding features of MailMate then <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">sanitize_canonical</code> could be used (which expects plain text input/output) to add an extra filter. If you do use HTML embedding then there's no perfect candidate, but <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">embed_html</code> could probably be used if using a CSS inliner (I can perhaps look into changing this to be more logical/useful). The main problem is that the plain text script is still needed and the plain text and the HTML scripts should remove the same content -- which could be very difficult.</p>

<p dir="auto">It might be better/easier for you if HTML embedding allowed a mode where the plain text variant was always based on converting HTML to plain text, but this is not currently available.</p>

<p dir="auto">In other words, I don't think this reply helps you much :)</p>

<p dir="auto">-- <br>
Benny</p>
</div>
</div>
</body>
</html>