Hi,
This is not a request as such, I am just interested to know how to do it as I am sure it is not that difficult.
I have roundcube that I use to access my dovecot server. The server itself is a sendmail setup that sends outgoing mail via my ISP and incoming mail is grabbed from my domain host via a cron job that runs every 5 minutes for each user, see below.
user getmail --getmaildir /home/user/.getmail -rgetmailrc
I would like it if I could run this code every time the "check for new messages" icon is hit, then have a delay until it is complete and then obviously show any new messages. As it is at the moment I have to wait ~5 minutes for the cron job to run before the check for new mail finds anything. It would also have to be able to run for which ever user is logged in. User names are all consitent with roundcube/sendmail etc.
I am sure it is not hard to do, just after a couple of hours of digging around the in the code I could not figure out a simple hack to make this happen.
Any pointers to the part of the code where the magic happens would be great as I could probably figure out the syntax etc.
This may be feature that others would be interested in, I am nor sure.
Thanks,
Pete.