Mailparse is an extension for parsing and working with email messages. It can deal with » RFC 822 and » RFC 2045 (MIME) compliant messages.
Mailparse is stream based, which means that it does not keep in-memory copies of the files it processes - so it is very resource efficient when dealing with large messages.
Note:
Mailparse requires the mbstring extension, and mbstring must be loaded before mailparse.
锟斤拷锟斤拷展锟窖憋拷锟斤拷锟斤拷 » PECL 锟斤拷源锟斤拷锟揭诧拷锟斤拷锟斤拷 PHP 锟斤拷锟斤拷4.2.0.