A thoroughly tested PHP email parsing library wrapping the mailparse extension for extracting headers, bodies, and attachments.