A.L.E.C,
I just doing validation of the variables are set or no. There are so many things yet that I don't understand how are created on roundcube but little by little I'm refactoring some pieces so it can work with a more restrictive warning and error mode.
My work is here https://github.com/rsantellan/symfony2-maith-roundcube I know it a real work in progress but so far I'm having better response times that with my last implementation (pure php imap).
Thanks for the help!