Class for parsing MIME messages
| package |
Framework |
|---|---|
| subpackage |
Storage |
| author |
Thomas Bruederli roundcube@gmail.com |
| author |
Aleksander Machniak alec@alec.pl |
__construct( $default_charset = null)
decode(string $input, string $encoding = '7bit') : string
stringInput string
stringPart encoding
stringDecoded string
decode_address_list(string $input, integer $max = null, boolean $decode = true, string $fallback = null, boolean $addronly = false) : array
stringInput string
integerList only this number of addresses
booleanDecode address strings
stringFallback charset if none specified
booleanReturn flat array with e-mail addresses only
arrayIndexed list of addresses
decode_header(string $input, string $fallback = null) : string
stringHeader value
stringFallback charset if none specified
stringDecoded string
decode_mime_string(string $input, string $fallback = null) : string
stringHeader value
stringFallback charset if none specified
stringDecoded string
explode_header_string(string $separator, string $str, boolean $remove_comments = false) : array
stringString containing separator characters
stringHeader string
booleanEnable to remove comments
arrayHeader items
file_content_type(string $path, string $name, string $failover = 'application/octet-stream', boolean $is_stream = false, boolean $skip_suffix = false) : string
| author |
Till Klampaeckel till@php.net |
|---|---|
| see | http://de2.php.net/manual/en/ref.fileinfo.php http://de2.php.net/mime_content_type |
stringPath to the file or file contents
stringFile name (with suffix)
stringMime type supplied for failover
booleanSet to True if $path contains file contents
booleanSet to True if the config/mimetypes.php mappig should be ignored
string
fix_email( $email)
format_flowed(string $text, integer $length = 72, string $charset = null) : string
stringText to wrap
integerLength
stringCharacter encoding of $text
stringWrapped text
get_charset() : string
stringCharacted set name
get_mime_extensions( $mimetype = null) : array
arrayList of extensions matching the given mimetype or a hash array with ext -> mimetype mappings if $mimetype is not given
image_content_type(string $data) : string
stringBinary file content
stringDetected mime-type or jpeg as fallback
parse_address_list( $str, $decode = true, $fallback = null)
parse_headers( $headers)
unfold_flowed(string $text, string $mark = null) : string
stringRaw body formatted as flowed text
stringMark each flowed line with specified character
stringInterpreted text with unwrapped lines and stuffed space removed
wordwrap(string $string, integer $width = 75, string $break = "\n", boolean $cut = false, string $charset = null, boolean $wrap_quoted = true) : string
The code is based on Zend_Text_MultiByte::wordWrap().
stringText to wrap
integerLine width
stringLine separator
booleanEnable to cut word
stringCharset of $string
booleanWhen enabled quoted lines will not be wrapped
stringText
default_charset :