Logical representation of a mail message with all its data and related functions
| package |
Framework |
|---|---|
| subpackage |
Storage |
| author |
Thomas Bruederli roundcube@gmail.com |
__construct(string $uid, string $folder = null, boolean $is_safe = false)
Provide a uid, and parse message structure.
| see |
self::$app,
self::$storage, self::$opt, self::$parts |
|---|---|
stringThe message UID.
stringFolder name
booleanSecurity flag
first_html_part( &$part = null, boolean $enriched = false) : string
booleanEnables checking for text/enriched parts too
stringHTML message part content
first_text_part( &$part = null, boolean $strict = false) : string
If there's no text/plain part but $strict=true and text/html part exists, it will be returned in text/plain format.
booleanCheck only text/plain parts
stringPlain text message/part content
format_flowed( $text, $length = 72)
format_part_body(string $body, \rcube_message_part $part, string $default_charset = null) : string
stringPart body
stringFallback charset if part charset is not specified
stringFormatted body
get_header(string $name, $raw = false) : string
stringHeader name
stringHeader value
get_mime_numbers(\rcube_message_part &$part)
get_multipart_encrypted_part() : \rcube_message_part
get_part_body(string $mime_id, boolean $formatted = false, integer $max_bytes, mixed $mode = null) : string|boolean
stringPart ID
booleanEnables formatting of text/* parts bodies
integerOnly return/read this number of bytes
mixedNULL to return a string, -1 to print body or file pointer to save the body into
string|booleanPart content or operation status
get_part_content(string $mime_id, resource $fp = null, boolean $skip_charset_conv = false, integer $max_bytes, boolean $formatted = true) : string
| deprecated |
|---|
stringPart MIME-ID
resourceFile pointer to save the message part
booleanDisables charset conversion
integerOnly read this number of bytes
booleanEnables formatting of text/* parts bodies
stringPart content
get_part_url(string $mime_id, mixed $embed = false) : string
stringPart MIME-ID
mixedMimetype class for parts to be embedded
stringURL or false if part does not exist
has_html_part(boolean $enriched = false, &$part = null) : boolean
booleanEnables checking for text/enriched parts too
booleanTrue if a HTML is available, False if not
has_text_part( &$part = null) : boolean
booleanTrue if a plain text part is available, False if not
parse_structure(\rcube_message_part $structure, boolean $recursive = false)
booleanTrue when called recursively
set_safe(boolean $safe = true)
booleanenable/disable
tnef_decode(\rcube_message_part &$part) : array
unfold_flowed( $text)
uu_decode(\rcube_message_part &$part) : array
BODY_MAX_SIZE
opt :
parse_alternative :
uid :
folder :
headers :
sender :
parts :
mime_parts :
inline_parts :
subject :
is_safe :