MailMimeParser 3.0

QuotedStringMimeLiteralPartTokenSplitPatternTrait

Provides a getTokenSplitPattern for consumers that could have quoted parts that are mime-header-encoded.

Tags
author

Zaahid Bateson

Table of Contents

getTokenSplitPattern()  : string
Overridden to use a specialized regex for finding mime-encoded parts (RFC 2047).

Methods

getTokenSplitPattern()

Overridden to use a specialized regex for finding mime-encoded parts (RFC 2047).

protected getTokenSplitPattern() : string

Some implementations seem to place mime-encoded parts within quoted parameters, and split the mime-encoded parts across multiple split parameters. The specialized regex doesn't allow double quotes inside a mime encoded part, so it can be "continued" in another parameter.

Return values
string

the regex pattern

Search results