Logical representation of a mail message with all its data and related functions
package |
Framework |
---|---|
subpackage |
Storage |
author |
Thomas Bruederli |
__construct(string $uid, string $folder = null)
Provide a uid, and parse message structure.
see |
self::$app,
self::$storage, self::$opt, self::$parts |
---|---|
string
The message UID.
string
Folder name
get_header(string $name, $raw = false) : string
string
Header name
string
Header value
set_safe(bool $safe = true)
bool
enable/disable
get_part_url(string $mime_id, mixed $embed = false) : string
string
Part MIME-ID
mixed
Mimetype class for parts to be embedded
string
URL or false if part does not exist
get_part_content(string $mime_id, resource $fp = null, boolean $skip_charset_conv = false, int $max_bytes, boolean $formatted = true) : string
string
Part MIME-ID
resource
File pointer to save the message part
boolean
Disables charset conversion
int
Only read this number of bytes
boolean
Enables formatting of text/* parts bodies
string
Part content
has_html_part(bool $enriched = false) : bool
bool
Enables checking for text/enriched parts too
bool
True if a HTML is available, False if not
has_text_part() : bool
bool
True if a plain text part is available, False if not
first_html_part() : string
string
HTML message part content
first_text_part(\rcube_message_part &$part = null) : string
string
Plain text message/part content
parse_structure(\rcube_message_part $structure, bool $recursive = false)
bool
True when called recursively
get_mime_numbers(\rcube_message_part &$part)
tnef_decode(\rcube_message_part &$part) : array
uu_decode(\rcube_message_part &$part) : array
unfold_flowed($text)
format_flowed($text, $length = 72)
opt :
parse_alternative :
uid :
folder :
headers :
parts :
mime_parts :
inline_parts :
subject :
sender :
is_safe :