Copied!

Parses a mail mime message into its component parts. To invoke, call
{@see MailMimeParser::parse()}.

CloneableInstantiable
Methods
public __construct(ZBateson\MailMimeParser\Parser\PartBuilderFactory $pbf, ZBateson\MailMimeParser\Message\Factory\PartHeaderContainerFactory $phcf, ZBateson\MailMimeParser\Parser\ParserManager $pm, ZBateson\MailMimeParser\Parser\HeaderParser $hp)
public parse(Psr\Http\Message\StreamInterface $stream)
 

Parses the passed stream into an {@see ZBateson\MailMimeParser\IMessage}
object and returns it.

  • param \StreamInterface $stream the stream to parse the message from
  • return \ZBateson\MailMimeParser\IMessage
public static readLine( $handle)
 

Convenience method to read a line of up to 4096 characters from the
passed resource handle.

If the line is larger than 4096 characters, the remaining characters in
the line are read and discarded, and only the first 4096 characters are
returned.

  • param resource $handle
  • return string|bool the read line or false on EOF or on error.
Properties
protected $headerParser = NULL
 
  • var \HeaderParser To parse the headers into a PartHeaderContainer.
protected $parserManager = NULL
 
  • var \ParserManager To figure out what parser is responsible for parsing a
    message.
protected $partBuilderFactory = NULL
 
  • var \PartBuilderFactory To create a PartBuilder representing this
    message, and to pass it to ParserManager.
protected $partHeaderContainerFactory = NULL
 
  • var \PartHeaderContainerFactory To create a container to read the
    message's headers into.
Methods
public static readLine( $handle)
 

Convenience method to read a line of up to 4096 characters from the
passed resource handle.

If the line is larger than 4096 characters, the remaining characters in
the line are read and discarded, and only the first 4096 characters are
returned.

  • param resource $handle
  • return string|bool the read line or false on EOF or on error.
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration