There's already a working patch in the trac for this. I'm using it on my installation and it works pretty well:
http://trac.roundcube.net/ticket/1484660
Cheers, Corrado _______________________________________________ List info: http://lists.roundcube.net/dev/