[MlMt] Inject custom javascript into Message View

Padraic Renaghan prenagha at renaghan.com
Thu Jun 22 23:30:19 EDT 2017


Thanks Benny for creating the display_html event hook. I have been experimenting and have gotten it to work pretty well. Most every message has some junk I can now remove, some as many as 8 legal nonsense blocks totaling over 8000 characters of junk removed!

I have added the basic framework to my MM GitHub repo. Comments, improvements, and other ideas welcome

https://github.com/prenagha/mailmate-resources#custom-html-bundle-to-filter-unwanted-mail-signatures-and-legal-nonsense

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?

Thanks,
Padraic

2017-06-20 13:56 EDT from Padraic Renaghan:

> Sounds good thanks. Eagerly awaiting the next update...
>
> 2017-06-19 08:25 EDT from Benny Kjær Nielsen:
>
>> On 13 Jun 2017, at 16:38, Padraic Renaghan wrote:
>>
>>>> File in the MailMate bundle named `eventFilters.plist`. For experimenting
>>>
>>> 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.
>>
>> There's no really good candidate, but in the next update I've added `display_html` for you to experiment with. It's used for any message displayed and both input and output is expected to be HTML.
>>
>> -- 
>> Benny
>
>
>> _______________________________________________
>> mailmate mailing list
>> mailmate at lists.freron.com
>> https://lists.freron.com/listinfo/mailmate


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20170622/4699086a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3522 bytes
Desc: S/MIME digital signature
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20170622/4699086a/attachment.bin>


More information about the mailmate mailing list