decode a quoted printable encoded string
The charset of the returned string depends on your iconv settings.
static string
decodeQuotedPrintable
(string $string)
-
string
$string: encoded string
split a content type in its different parts
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
( $field, [string $wantedPart = null], [string $firstName = 0], string $type)
-
string
$type: header field
-
string
$wantedPart: the wanted part, else an array with all parts is returned
-
string
$firstName: key name for the first part
-
$field
split a message in header and body part, if no header or an invalid header is found $headers is empty
The charset of the returned headers depend on your iconv settings.
static null
splitMessage
(string $message, &$headers, &$body, [string $EOL = Zend_Mime::LINEEND], array $headers, string $body)
-
string
$message: raw message with header and optional content
-
array
$headers: output param, array with headers as array(name => value)
-
string
$body: output param, content of message
-
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|null
splitMessageStruct
(string $message, string $boundary, [string $EOL = Zend_Mime::LINEEND])
-
string
$message: raw message content
-
string
$boundary: boundary as found in content-type
-
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: raw body of message
-
string
$boundary: boundary as found in content-type