Copied!

Parses content for non-mime messages and uu-encoded child parts.

CloneableInstantiable
Methods
public __construct(ZBateson\MailMimeParser\Parser\Proxy\ParserNonMimeMessageProxyFactory $parserNonMimeMessageProxyFactory, ZBateson\MailMimeParser\Parser\Proxy\ParserUUEncodedPartProxyFactory $parserUuEncodedPartProxyFactory, ZBateson\MailMimeParser\Parser\PartBuilderFactory $partBuilderFactory, ZBateson\MailMimeParser\Parser\Part\UUEncodedPartHeaderContainerFactory $uuEncodedPartHeaderContainerFactory)
public canParse(ZBateson\MailMimeParser\Parser\PartBuilder $part) : bool
 

Always returns true, and should therefore be the last parser reached by a ParserManager.

public ZBateson\MailMimeParser\Parser\AbstractParser::getParserMessageProxyFactory()
public ZBateson\MailMimeParser\Parser\AbstractParser::getParserPartProxyFactory()
public parseContent(ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy $proxy)
 
  • return static
public parseNextChild(ZBateson\MailMimeParser\Parser\Proxy\ParserMimePartProxy $proxy)
public ZBateson\MailMimeParser\Parser\AbstractParser::setParserManager(ZBateson\MailMimeParser\Parser\ParserManager $pm)
 
  • return static
Properties
protected ZBateson\MailMimeParser\Parser\AbstractParser::$parserManager = NULL
 
  • var \ParserManager the ParserManager, which should call setParserManager when the parser is added.
protected ZBateson\MailMimeParser\Parser\AbstractParser::$parserMessageProxyFactory = NULL
 
  • var \ParserPartProxyFactory the parser's message proxy factory service responsible for creating an IMessage part wrapped in a ParserPartProxy.
protected ZBateson\MailMimeParser\Parser\AbstractParser::$parserPartProxyFactory = NULL
 
  • var \ParserPartProxyFactory the parser's part proxy factory service responsible for creating IMessagePart parts wrapped in a ParserPartProxy.
protected ZBateson\MailMimeParser\Parser\AbstractParser::$partBuilderFactory = NULL
 
  • var \PartBuilderFactory Service for creating PartBuilder objects for new children.
protected $partHeaderContainerFactory = NULL
 
  • var \UUEncodedPartHeaderContainerFactory
Methods
private createPart(ZBateson\MailMimeParser\Parser\Proxy\ParserNonMimeMessageProxy $parent)
 

Creates a UUEncodedPartHeaderContainer attached to a PartBuilder, and calls $this->parserManager->createParserProxyFor().

It also sets the PartBuilder's stream part start pos and content start pos to that of $parent->getNextParStart() (since a 'begin' line is read prior to another child being created, see parseNextPart()).

  • return \ParserPartProxy
private parseNextPart(ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy $proxy) : self
 

Reads content from the passed ParserPartProxy's stream till a uu-encoded 'begin' line is found, setting $proxy->setStreamPartContentAndEndPos() to the last byte read before the begin line.

  • param \ParserNonMimeMessageProxy|\ParserUUEncodedPartProxy $proxy
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration