RoundCube Webmail hacks

RoundCube Main Screen 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.

  1. Open the mail.html template under roundcuberoot/skins/default/templates to edit.
  2. Put after the 6th line the following code:
    <script type="text/javascript">
                function checkNewMails() {
                  rcmail.command('checkmail','',this);
                }
               window.setInterval("checkNewMails()", 300*1000);
               </script>
  3. Save the file

You have to make this changes in your RoundCube installation directory.

3 Responses to “RoundCube Webmail hacks”

  1. foxx says:

    Hello,

    I really like roundcube webmail and will replace confixx Webmail with it. Thank you for this snipped it works nice!

    cu,
    foxx

  2. pozy says:

    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…

  3. Silas Knobel says:

    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.