This plugin show how to make a plugin for roundcube by showing the basics (and some advanced stuff).