MAX_FETCH
MAX_FETCH
Maximum number of of messages to fetch from the IMAP server in one go.
Horde_ActiveSync_Imap_Adapter contains methods for communicating with Horde's Horde_Imap_Client library.
$_imap : \Horde_ActiveSync_Interface_ImapFactory
appendMessage(string $folderid, string|\stream $msg, array $flags = array()) : integer|boolean
Append a message to the specified mailbox. Used for saving sent email.
| string | $folderid | The mailbox | 
| string|\stream | $msg | The message | 
| array | $flags | Any flags to set on the newly appended message. | 
Horde_ActiveSync_Exception, Horde_ActiveSync_Exception_FolderGone
The imap uid of the appended message or false on failure. @since 2.37.0
createMailbox(string $name, string $parent = null)
Create a new mailbox on the server, and subscribe to it.
| string | $name | The new mailbox name. | 
| string | $parent | The parent mailbox, if any. @return string The new serverid for the mailbox. This is the UTF-8 name of the mailbox. @since 2.9.0 @throws Horde_ActiveSync_Exception, Horde_ActiveSync_Exception_FolderExists | 
getAttachment(string $mailbox, string $uid, string $part) : \Horde_Mime_Part
Return the content of a specific MIME part of the specified message.
| string | $mailbox | The mailbox name. | 
| string | $uid | The message UID. | 
| string | $part | The MIME part identifier. | 
The attachment data
getImapMessage(string $mailbox, array|integer $uid, array $options = array()) : array
Return a complete Horde_ActiveSync_Imap_Message object for the requested uid.
| string | $mailbox | The mailbox name. | 
| array|integer | $uid | The message uid. | 
| array | $options | Additional options: 
 | 
An array of Horde_ActiveSync_Imap_Message objects.
getMessageChanges(\Horde_ActiveSync_Folder_Imap $folder, array $options = array()) : \Horde_ActiveSync_Folder_Imap
Return message changes from the specified mailbox.
| \Horde_ActiveSync_Folder_Imap | $folder | The folder object. | 
| array | $options | Additional options: 
 | 
Horde_ActiveSync_Exception, Horde_ActiveSync_Exception_StaleState
The folder object, containing any change instructions for the device.
getMessages(string $folderid, array $messages, array $options = array()) : array
Return AS mail messages, from the given IMAP UIDs.
| string | $folderid | The mailbox folder. | 
| array | $messages | List of IMAP message UIDs | 
| array | $options | Additional Options: 
 | 
An array of Horde_ActiveSync_Message_Mail objects.
getUidFromMid(string $mid, \Horde_ActiveSync_Folder_Imap $folder) : integer
Return a message UIDs from the given Message-ID.
| string | $mid | The Message-ID | 
| \Horde_ActiveSync_Folder_Imap | $folder | The folder object to search. | 
The UID
moveMessage(string $folderid, array $ids, string $newfolderid) : array
Move a mail message
| string | $folderid | The existing folderid. | 
| array | $ids | The message UIDs of the messages to move. | 
| string | $newfolderid | The folder id to move $id to. | 
An hash of oldUID => newUID.
| None found | 
ping(\Horde_ActiveSync_Folder_Imap  $folder) : boolean
                Ping a mailbox. This detects only if any new messages have arrived in the specified mailbox.
| \Horde_ActiveSync_Folder_Imap | $folder | The folder object. | 
Horde_ActiveSync_Exception_FolderGone
True if changes were detected, otherwise false.
| None found | 
queryMailbox(array  $query) : array
                Perform a search from a search mailbox request.
| array | $query | The query array. | 
An array of 'uniqueid', 'searchfolderid' hashes.
| None found | 
renameMailbox(string $old, string $new, string $parent = null) : string
Rename a mailbox
| string | $old | The old mailbox name. | 
| string | $new | The new mailbox name. | 
| string | $parent | The parent mailbox, if any. | 
The new serverid for the mailbox. @since 2.9.0
| None found | 
setImapFlag(string $mailbox, integer $uid, string $flag)
Set a IMAP message flag.
| string | $mailbox | The mailbox name. | 
| integer | $uid | The message UID. | 
| string | $flag | The flag to set. A Horde_ActiveSync:: constant. | 
| None found | 
setLogger(\Horde_Log_Logger  $logger) 
                Set this instance's logger.
| \Horde_Log_Logger | $logger | The logger. | 
| None found | 
setMessageFlag(string $mailbox, integer $uid, \Horde_ActiveSync_Message_Flag $flag)
Set a POOMMAIL_FLAG on a mail message. This method differs from setReadFlag() in that it is passed a Flag object, which contains other data beside the seen status. Used for setting flagged for followup and potentially creating tasks based on the email.
| string | $mailbox | The mailbox name. | 
| integer | $uid | The message uid. | 
| \Horde_ActiveSync_Message_Flag | $flag | The flag | 
| None found | 
categoriesToFlags( $mailbox, $categories, $uid)
| $mailbox | ||
| $categories | ||
| $uid | 
| None found | 
setReadFlag(string $mailbox, string $uid, integer $flag)
Set the message's read status.
| string | $mailbox | The mailbox name. | 
| string | $uid | The message uid. | 
| integer | $flag | Horde_ActiveSync_MessageMail::FLAG* constant | 
| None found | 
_buildSubQuery(array  $query) : \Horde_Imap_Client_Search_Query
                Helper to build a subquery
| array | $query | A subquery array. | 
The query object.
| None found | 
_buildMailMessage(\Horde_Imap_Client_Mailbox $mbox, \Horde_Imap_Client_Data_Fetch $data, array $options = array()) : \Horde_ActiveSync_Message_Mail
Builds a proper AS mail message object.
| \Horde_Imap_Client_Mailbox | $mbox | The IMAP mailbox. | 
| \Horde_Imap_Client_Data_Fetch | $data | The fetch results. | 
| array | $options | Additional Options: 
 | 
The message object suitable for streaming to the device.
| None found | 
_prependNamespace(string  $name) : string
                Prefix the default namespace to mailbox name if needed.
| string | $name | The mailbox name. | 
The mailbox name with the default namespace added, if needed.
| None found | 
_defaultNamespace() : array
Return the default namespace.
The namespace data.
| None found | 
_getNamespacelist() : array
Return the list of configured namespaces on the IMAP server.
| None found | 
_doQuery(array  $query) : array
                Perform an IMAP search based on a SEARCH request.
| array | $query | The search query. | 
The results array containing an array of hashes: 'uniqueid' => [The unique identifier of the result] 'searchfolderid' => [The mailbox name that this result comes from]
| None found | 
_getImapOb() : \Horde_Imap_Client_Base
Helper to obtain a valid IMAP client. Can't inject it since the user is not yet authenticated at the time of object creation.
| None found | 
_getMailMessages(\Horde_Imap_Client_Mailbox $mbox, array $uids, array $options = array()) : \Horde_Imap_Fetch_Results
| \Horde_Imap_Client_Mailbox | $mbox | The mailbox | 
| array | $uids | An array of message uids | 
| array | $options | An options array 
 | 
The results.
| None found |