For all the testers in dev - I made the flag/unflag functionality work by standard coding. It is set to later, but I have been using it for some months now without any trouble. You can apply the diff to test it on your configuration (=> hope it still works on current SVN).
 
http://trac.roundcube.net/ticket/1484623
 
 
Seansan