Extends AbstractGenericConsumerService to use a MimeTokenPartFactory, and to preserve all whitespace and escape sequences as-is (unlike other headers subject headers don't have escape chars such as '\' for a backslash).
SubjectConsumerService doesn't define any sub-consumers.
- author Zaahid Bateson
Methods |
public __construct(Psr\Log\LoggerInterface $logger, ZBateson |
Properties |
Methods |
protected getPartForToken(string $token, bool $isLiteral) : ?ZBateson Overridden to preserve whitespace. Whitespace between two words is preserved unless the whitespace begins with a newline (\n or \r\n), in which case the entire string of whitespace is discarded, and a single space ' ' character is used in its place. |
protected getTokenParts(Iterator $tokens) : array 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.
|