Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: soromir on June 23, 2017, 08:07:59 AM

Title: Create hook
Post by: soromir on June 23, 2017, 08:07:59 AM
Hi, Who can tell how to catch the move message, to implement the hook
Title: Re: Create hook
Post by: JohnDoh on June 24, 2017, 11:50:01 AM
one way is from the javascript events there are before<command> and after<command> events. so something like:
Code: [Select]
rcmail.addEventListener('beformove', function() { /* do something */ });
If you want a more detailed example look at the JS in the vcard_attachments plugin shipped with roundcube.
Title: Re: Create hook
Post by: soromir on June 29, 2017, 10:04:17 AM
I need to catch a moment in PHP, after $this->rc->storage->move_message()