Hi Astral God,
Taking a quick look at the RoundCube cPanel driver (cpanel.php). It looks like they are not coding against our APIs.
Simply, they should be using the API2 call Email::passwdpop and Email::liskpopswithdisk. Instead they are coding against the UI, which as you've observed first hand, is a fragile method of programmatic coding.
It's very clear where the problem is; this driver will always return a failure message for any language other than English:
Code:
94 if(strpos($response, 'success') && !strpos($response, 'failure'))
91 {
92 return true;
93 }
The above code shows that their scanning the HTML return page for the English word Success or Failure. These words will change based on the language setting of cPanel. The API will always return English words PLUS it returns an integer result: 1 for success, 0 for failure.
It shouldn't be too difficult to refactor the cPanel driver. If I get a moment, I'll see what I can do. I can't make any promises since this is not our code; I'm kinda swamped with work and the cPanel conference is next week (gotta get ready!).
Best Regards,
-DavidN