rcube_imapInterface class for accessing an IMAP server
Located in /rcube_imap.php (line 33)
static array
explode_header_string
(string $separator, string $str, [bool $remove_comments = false])
boolean
connect
(string $host, string $user, string $pass, [integer $port = 143], [string $use_ssl = null])
string
&get_message_part
(int $uid, [string $part = 1], [rcube_message_part $o_part = NULL], [mixed $print = NULL], [resource $fp = NULL], [boolean $skip_charset_conv = false])
array
list_headers
([string $mailbox = ''], [int $page = NULL], [string $sort_field = NULL], [string $sort_order = NULL], [int $slice = 0])
array
list_mailboxes
([string $root = ''], [string $name = '*'], [string $filter = null], [string $rights = null])
array
list_unsubscribed
([string $root = ''], [string $name = '*'], [mixed $filter = null], [string $rights = null])
int
messagecount
([string $mailbox = ''], [string $mode = 'ALL'], [boolean $force = false], [boolean $status = true])
array
message_index
([string $mailbox = ''], [string $sort_field = NULL], [string $sort_order = NULL])
array
message_index_direct
(string $mailbox, [string $sort_field = null], [string $sort_order = null])
int|bool
save_message
(string $mailbox, &$message, [string $headers = ''], [boolean $is_file = false], string $message)
array
search
([string $mailbox = ''], [string $str = NULL], [string $charset = NULL], [string $sort_field = NULL])
boolean
set_flag
(mixed $uids, string $flag, [string $mailbox = null], [boolean $skip_cache = false])
void
set_search_set
([string $str = null], [array $msgs = null], [string $charset = null], [string $sort_field = null], [string $threads = false], [ $sorted = false])
array
thread_index
([string $mailbox = ''], [string $sort_field = NULL], [string $sort_order = NULL])
rcube_imap_generic
$conn
(line 48)
Instance of rcube_imap_generic
mixed
$debug_level
= 1 (line 35)
mixed
$fetch_add_headers
= '' (line 40)
mixed
$get_all_headers
= false (line 41)
mixed
$list_page
= 1 (line 38)
mixed
$page_size
= 10 (line 37)
mixed
$search_set
= NULL (line 81)
mixed
$search_string
= '' (line 82)
mixed
$skip_deleted
= false (line 36)
mixed
$threading
= false (line 39)
static decode_mime_string (line 4020)
Decode a mime-encoded string to internal charset
static explode_header_string (line 4463)
Explodes header (e.g. address-list) string into array of strings using specified separator characters with proper handling of quoted-strings and comments (RFC2822)
Constructor __construct (line 126)
Object constructor.
charset_decode (line 4147)
Convert body charset to RCMAIL_CHARSET according to the ctype_parameters
check_permflag (line 518)
Checks the PERMANENTFLAGS capability of the current mailbox and returns true if the given flag is supported by the IMAP server
clear_cache (line 3882)
Clears the cache.
clear_mailbox (line 2745)
Clear all messages in a specific mailbox
clear_message_cache (line 3934)
Clears the messages cache.
close (line 221)
Close IMAP connection Usually done on script shutdown
connect (line 150)
Connect to an IMAP server
copy_message (line 2651)
Copy a message from one mailbox to another
create_default_folders (line 3293)
Create all folders specified as default
create_mailbox (line 3175)
Create a new mailbox on the server and register it in local cache
debug_handler (line 4531)
This is our own debug handler for the IMAP connection
decode_address_list (line 3955)
Split an address list into a structured array list
decode_header (line 4001)
Decode a message header value
delete_acl (line 3622)
Removes any <identifier,rights> pair for the specified user from the ACL for the specified mailbox (DELETEACL)
delete_mailbox (line 3255)
Remove mailbox from server
delete_message (line 2691)
Mark messages as deleted and expunge mailbox
delete_metadata (line 3728)
Unsets IMAP metadata/annotations (SETMETADATA/SETANNOTATION)
expunge (line 2776)
Send IMAP expunge command and clear cache
fetch_threads (line 987)
Method for fetching threads data
get_acl (line 3640)
Returns the access control list for mailbox (GETACL)
get_body (line 2416)
Fetch message body of a specific message from the server
get_cache (line 3853)
Returns cached value
get_capability (line 480)
Returns the IMAP server's capability
get_error_code (line 251)
Returns code of last error
get_error_str (line 262)
Returns message of last error
get_headers (line 1922)
Return message headers object of a specific message
get_hierarchy_delimiter (line 532)
Returns the delimiter that is used by the IMAP server for folder separation
get_id (line 2881)
Translate UID to message ID
get_mailbox_name (line 467)
Returns the currently used mailbox name
get_mailbox_size (line 3123)
Get mailbox size (size of all messages in a mailbox)
get_message (line 1950)
Fetch message headers and body structure from the IMAP server and build an object structure similar to the one generated by PEAR::Mail_mimeDecode
get_message_part (line 2367)
Fetch message body of a specific message from the server
get_metadata (line 3759)
Returns IMAP metadata/annotations (GETMETADATA/GETANNOTATION)
get_namespace (line 546)
Get namespace
get_quota (line 3107)
Get mailbox quota information added by Nuny
get_raw_body (line 2432)
Returns the whole message source as string (or saves to a file)
get_raw_headers (line 2445)
Returns the message headers as string
get_response_code (line 273)
Returns code of last command response
get_response_str (line 303)
Returns last command response
get_search_set (line 449)
Return the saved search set as hash array
get_uid (line 2899)
Translate message number to UID
id2uid (line 4277)
Find UID of the specified message sequence ID
in_searchset (line 1900)
Check if the given message ID is part of the current search set
list_headers (line 811)
Public method for listing headers convert mailbox name with root dir first
list_mailboxes (line 2925)
Public method for listing subscribed folders
list_rights (line 3660)
Returns information about what rights can be granted to the user (identifier) in the ACL for the mailbox (LISTRIGHTS)
list_unsubscribed (line 3049)
Get a list of all folders available on the IMAP server
mailbox_data (line 3449)
Gets connection (and current mailbox) data: UIDVALIDITY, EXISTS, RECENT, PERMANENTFLAGS, UIDNEXT, UNSEEN
mailbox_exists (line 3313)
Checks if folder exists and is subscribed
mailbox_info (line 3480)
Returns extended information about the folder
mailbox_namespace (line 3348)
Returns the namespace where the folder is in
mailbox_options (line 3420)
Gets folder options from LIST response, e.g. \Noselect, \Noinferiors
mailbox_status (line 1353)
Returns current status of mailbox
We compare the maximum UID to determine the number of new messages because the RECENT flag is not reliable.
mailbox_sync (line 3559)
Synchronizes messages cache.
messagecount (line 652)
Get message count for a specific mailbox
message_index (line 1418)
Return sorted array of message IDs (not UIDs)
message_index_direct (line 1502)
Return sorted array of message IDs (not UIDs) directly from IMAP server.
Doesn't use cache and ignores current search settings.
mime_decode (line 4121)
Decode a mime part
mod_mailbox (line 3383)
Modify folder name according to namespace.
For output it removes prefix of the personal namespace if it's possible. For input it adds the prefix. Use it before creating a folder in root of the folders tree.
move_message (line 2567)
Move a message from one mailbox to another
my_rights (line 3679)
Returns the set of rights that the current user has to mailbox (MYRIGHTS)
print_raw_body (line 2456)
Sends the whole message source to stdout
reconnect (line 235)
Close IMAP connection and re-connect This is used to avoid some strange socket errors when talking to Courier IMAP
refresh_search (line 1884)
Refresh saved search set
rename_mailbox (line 3200)
Set a new name to an existing mailbox
save_message (line 2536)
Append a mail message (source) to a specific mailbox
search (line 1623)
Invoke search request to IMAP server
search_once (line 1730)
Direct (real and simple) SEARCH request to IMAP server, without result sorting and caching
select_mailbox (line 378)
Forces selection of a mailbox
set_acl (line 3600)
Changes the ACL on the specified mailbox (SETACL)
set_caching (line 3820)
Enable or disable indexes caching
set_charset (line 328)
Set default message charset
This will be used for message decoding if a charset specification is not available
set_default_mailboxes (line 340)
This list of folders will be listed above all other folders
set_flag (line 2472)
Set message flag to one or several messages
set_mailbox (line 360)
Set internal mailbox reference.
All operations will be perfomed on this mailbox/folder
set_messages_caching (line 3899)
Enable or disable messages caching
set_metadata (line 3698)
Sets IMAP metadata/annotations (SETMETADATA/SETANNOTATION)
set_options (line 314)
Set options to be used in rcube_imap_generic::connect()
set_page (line 400)
Set internal list page
set_pagesize (line 412)
Set internal page size
set_search_set (line 427)
Save a set of message ids for future message listing methods
set_threading (line 493)
Sets threading flag to the best supported THREAD algorithm
sort_threads (line 1785)
Sort thread
subscribe (line 3141)
Subscribe to a specific mailbox(es)
thread_index (line 1548)
Return sorted array of threaded message IDs (not UIDs)
uid2id (line 4246)
Finds message sequence ID for specified UID
unset_flag (line 2520)
Remove message flag for one or several messages
unsubscribe (line 3157)
Unsubscribe mailboxes
update_cache (line 3867)
Update cache
Documentation generated on Tue, 04 Oct 2011 22:55:24 +0200 by phpDocumentor 1.4.3