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

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()).

private parseNextPart(ZBateson\MailMimeParser\Parser\Proxy\ParserPartProxy $proxy) : static
 

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
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration