the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
1.01k stars 121 forks source link

addAjaxHook function for custom SnappyMail plugin #1242

Closed CamZie closed 1 year ago

CamZie commented 1 year ago

We are experiencing issues with some of our custom plugins, while trying to migrate our Rainloop webmail to SnappyMail.

In one of our plugins, we are using the "addAjaxHook" function, which seems to have been removed from the AbstractPlugin. What can we replace this function with?

Many thanks in advance.

the-djmaze commented 1 year ago

Since the communication is JSON, the function name is addJsonHook. AJAX is for XML (but people misuse it for JSON) 😉

Also, use the following for reference: https://github.com/the-djmaze/snappymail/tree/master/plugins#readme

CamZie commented 1 year ago

Since the communication is JSON, the function name is addJsonHook. AJAX is for XML (but people misuse it for JSON) 😉

Also, use the following for reference: https://github.com/the-djmaze/snappymail/tree/master/plugins#readme

We have used the function addJsonHook and we confirm that it works. Thanks a lot!