decode a quoted printable encoded string
static string
decodeQuotedPrintable
(string $string)
-
string
$string: encoded string
split a content type in its different parts - maybe that could get a more generic name and code as many fields use this format
static string|array
splitContentType
(string $type, [string $wantedPart = null])
-
string
$type: content-type
-
string
$wantedPart: the wanted part, else an array with all parts is returned
split a header field like content type in its different parts
static string|array
splitHeaderField
(string $type, [string $wantedPart = null], string $firstName)
-
string
$type: header field
-
string
$wantedPart: the wanted part, else an array with all parts is returned
-
string
$firstName: key name for the first field
split a message in header and body part, if no header or an invalid header is found $headers is empty
static void
splitMessage
(string $message, &$headers, &$body, [string $EOL = Zend_Mime::LINEEND], mixed $headers,, mixed $body,)
-
string
$message
-
mixed
$headers,: output param, out type is array
-
mixed
$body,: output param, out type is string
-
string
$EOL: EOL string; defaults to Zend_Mime::LINEEND
-
&$headers
-
&$body
decodes a mime encoded String and returns a struct of parts with header and body
static array
splitMessageStruct
(string $message, string $boundary, [string $EOL = Zend_Mime::LINEEND])
-
string
$message
-
string
$boundary
-
string
$EOL: EOL string; defaults to Zend_Mime::LINEEND
Explode MIME multipart string into seperate parts
Parts consist of the header and the body of each MIME part.
static array
splitMime
(string $body, string $boundary)
-
string
$body
-
string
$boundary