dev-php/
pecl-mailparse

PHP extension for parsing and working with RFC822 and MIME compliant messages

https://pecl.php.net/mailparse