The existing script has some bugs. It should run on a Debian Linux systems and fetch new Emails from a Webmailer using Rondcube 0.81
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