The existing script has some bugs. It should run on a Debian Linux systems and fetch new Emails from a Webmailer using Rondcube [url removed, login to view]
First Bug: Forwarded Emails have a lot of Rundcube-HTML-Code and are not clearly to see as Emails, this should be filtered with regex.
Second bug: Some new messages are notforwarded.
PHP, Curl, Linux, Roundcube