This script requires the mailparse php PECL extension