zendframework / zend-mime

Mime component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 37 forks source link

Allow parsing a non-multipart MIME message string into a Message #22

Closed hanzi closed 7 years ago

hanzi commented 7 years ago

Currently, Message::createFromMessage( $message, $boundary [, $EOL] ) only works for multipart messages.

This PR allows omitting the $boundary parameter, in which case $message will be interpreted as the sole part of the message.

One place where this would be helpful parsing the body of non-multipart e-mail messages. That would allow consistent handling of said body as a Message object.