This script needs to be run in in command-line mode only !!!! This script requires the mailparse php PECL extension