I had installed the RoundCube Webmail client on my webserver because the webmail clients (OpenWebMail and CONFIXX Webmail) aren’t so nice.
RoundCube Webmail is a browser-based multilingual IMAP client with an application-like user interface. It requires at least PHP4 with a SQL Engine like MySQL, PostgreSQL or SQLite. The user interface is fully skinnable using XHTML and CSS 2. It’s a very nice AJAX powered webmail client. But there is one minus. RoundCube doesn’t get new e-mails automaticly. And so the session will die after 10 minutes.
I’ve added a JavaScript code in the header of the mail.html template which “presses” the button to get new mails every 5 Minutes. To add this hack to your RoundCube installation follow these commands.
- Open the mail.html template under roundcuberoot/skins/default/templates to edit.
- Put after the 6th line the following code:
<script type="text/javascript"> function checkNewMails() { rcmail.command('checkmail','',this); } window.setInterval("checkNewMails()", 300*1000); </script> - Save the file
You have to make this changes in your RoundCube installation directory.

Hello,
I really like roundcube webmail and will replace confixx Webmail with it. Thank you for this snipped it works nice!
cu,
foxx
ey ciao feriegänger
muesch mal t svn version installiere, ich ha die bi mir druf… hät a bunch of more features than the stable one…
I’ve installed the nightly build of the roundcube svn version. There are some new cool features like sending HTML mails, composing emails with a WYSIWYG editor and show received emails in a preview pane. But the loginpage doesn’t look so nice. I’ll look for a new svn version in a few weeks.