partFactory->newMimeToken($token); } return $this->partFactory->newSubjectToken($token); } /** * Returns an array of \ZBateson\MailMimeParser\Header\Part\HeaderPart for * the current token on the iterator. * * Overridden from AbstractConsumerService to remove special filtering for * backslash escaping, which also seems to not apply to Subject headers at * least in ThunderBird's implementation. * * @return IHeaderPart[] */ protected function getTokenParts(Iterator $tokens) : array { return $this->getConsumerTokenParts($tokens); } }