Piping incoming mail and attachments with PHP.
@author Ivan Ivanov @copyright 2015 http://wwork.eu/
Requirements
You will need mimeDecode.php from http://pear.php.net/package/Mail_mimeDecode/
Setup
Configure your mail server to pipe emails to this script.
Make this script executable, and edit the configuration options to suit your needs. Change permissions of the directories so that the user executing the script (probably the mail user).
Setup DB settings in config.php