Parses the passed stream handle into a ZBateson\MailMimeParser\Message
object and returns it.

Internally, the message is first copied to a temp stream (with php://temp
which may keep it in memory or write it to disk) and its stream is used.
That way if the message is too large to hold in memory it can be written
to a temporary file if need be.

Parameters

$handleOrString

resourcestring

the resource handle to the input
stream of the mime message, or a string containing a mime message