Thomas Bruederli wrote:
this.triggerEvent('http_response', response);
I've seen 'listupdate' event trigger there, so the idea was to replace it by something more unified for all actions.
It would be nice if we could use $OUTPUT->command() in plugins too. This would make it easy to either call core functions like $OUTPUT->command('move_messages', $junk_mbox) but also custom functions defined by the plugin itself.
I probably not understand, check managesieve plugin. There are e.g.:
$this->rc->output->command('managesieve_updatelist', 'down', '', $fid);
... and it's working. Of course in managesieve.js we have:
rcube_webmail.prototype.managesieve_updatelist = function(action, name, id) {....