I'm trying to let my plugin delete messages. I've read move_del.inc and tried to recreate it in my plugin by using $this->IMAP->delete_message($_GET['_uid'], $_GET['_mbox']); and different varieties of it with no success. I figured I could do an ajax call with the required postdata (_mbox, _uid etc) but I would really love having it work on php level to expand my Roundcube knowledge.
If somebody could please point me in the right direction it'd be greatly appreciated.