Hi
I use roundcube with a webSSO, where it never have the IMAP password. Instead it receive an authentication token from apache and sends it to the IMAP server, which will validate it using a PAM module.
The authentication token is valid within a time frame. When it expires, roundcube is denied access and it displays a "Server error (No connection)" message. Recovering from there is as simple as reloading the page: apache re-authenticate the user, a fresh token is generated and things work again.
Question is: do I have a way to catch the error message, and juste cause a page reload instead of displaying it?