Decode a mime part
string
decode
(string $input, [string $encoding = '7bit'])
-
string
$input: Input string
-
string
$encoding: Part encoding
Split an address list into a structured array list
array
decode_address_list
(string $input, [int $max = null], [boolean $decode = true], [string $fallback = null])
-
string
$input: Input string
-
int
$max: List only this number of addresses
-
boolean
$decode: Decode address strings
-
string
$fallback: Fallback charset if none specified
Decode a message header value
string
decode_header
(string $input, [string $fallback = null])
-
string
$input: Header value
-
string
$fallback: Fallback charset if none specified
Decode a mime-encoded string to internal charset
string
decode_mime_string
(string $input, [string $fallback = null])
-
string
$input: Header value
-
string
$fallback: Fallback charset if none specified
Explodes header (e.g. address-list) string into array of strings using specified separator characters with proper handling of quoted-strings and comments (RFC2822)
array
explode_header_string
(string $separator, string $str, [bool $remove_comments = false])
-
string
$separator: String containing separator characters
-
string
$str: Header string
-
bool
$remove_comments: Enable to remove comments
Wrap the given text to comply with RFC 2646
string
format_flowed
(string $text, [int $length = 72])
-
string
$text: Text to wrap
-
int
$length: Length
Split RFC822 header string into an associative array
void
parse_headers
( $headers)
Parse the given raw message source and return a structure of rcube_message_part objects.
It makes use of the PEAR:Mail_mimeDecode library
-
string
$raw_body: The message source
Interpret a format=flowed message body according to RFC 2646
string
unfold_flowed
(string $text)
-
string
$text: Raw body formatted as flowed text
Object constructor.
rcube_mime
__construct
([ $default_charset = null])