Property | Type | Description | |
---|---|---|---|
$_noPerms | array | The listing of API calls that do not require permissions checking. |
Method | Description | |
---|---|---|
addFlags ( array $flags ) | Ensures a list of user-defined IMAP flag(s) for the current user exist. | |
batchCompose ( string | array $args = [], array $extra = [] ) : array | Return a list of compose window links. | |
compose ( string | array $args = [], array $extra = [] ) : Horde_Url | Returns a compose window link. | |
copyMessages ( string $mailbox, array $indices, string $target ) : boolean | Copies messages to a mailbox. | |
createMailbox ( string $mbox, array $options = [] ) : Horde_Imap_Client_Mailbox | Creates a new mailbox. | |
deleteMessages ( string $mailbox, array $indices ) : integer | boolean | Deletes messages from a mailbox. | |
favouriteRecipients ( integer $limit, array $filter = ['new', 'forward', 'reply', 'redirect'] ) : array | Returns the list of favorite recipients. | |
flagList ( string $mailbox = null ) : array | Return the list of user-settable IMAP flags. | |
flagMessages ( string $mailbox, array $indices, array $flags, boolean $set ) : boolean | Flag messages. | |
getMaillog ( string $mid ) : Horde_History_Log | Obtain the Maillog for a given message. | |
getMaillogChanges ( integer $ts ) : array | Returns a list of Message-IDs that have been added to the Maillog since the specified timestamp. | |
getSpecialMailboxes ( ) | Return the list of special mailboxes. | |
imapOb ( ) : Horde_Imap_Client_Base | Returns the Horde_Imap_Client object created using the IMP credentials. | |
logMaillog ( string $action, string $mid, string $data = null ) | Log an entry in the Maillog. | |
logRecipient ( $reason, string | array $recipients, string $message_id, boolean $success = true ) | Log an entry to the IMP_Sentmail system. | |
mailboxList ( array $opts = [] ) : array | Returns the list of mailboxes. | |
mdnSend ( Horde_Mime_Headers $headers, $mailbox, $uid ) : boolean | Check if we need to send a MDN, and send if needed/able. Will only send MDN if the request does NOT need to be confirmed by the user. | |
moveMessages ( string $mailbox, array $indices, string $target ) : boolean | Moves messages to a mailbox. | |
searchMailbox ( string $mailbox, Horde_Imap_Client_Search_Query $query ) : array | Perform a search query on the remote IMAP server. | |
server ( ) : mixed | Returns information on the currently logged on IMAP server. |
public batchCompose ( string | array $args = [], array $extra = [] ) : array | ||
$args | string | array | List of arguments to pass to compose page. If this is passed in as a string, it will be parsed as a toaddress?subject=foo&cc=ccaddress (mailto-style) string. |
$extra | array | List of hashes of extra, non-standard arguments to pass to compose page. |
return | array | The list of Horde_Url objects with links to the message composition screen. |
public compose ( string | array $args = [], array $extra = [] ) : Horde_Url | ||
$args | string | array | List of arguments to pass to compose page. If this is passed in as a string, it will be parsed as a toaddress?subject=foo&cc=ccaddress (mailto-style) string. |
$extra | array | Hash of extra, non-standard arguments to pass to compose page. |
return | Horde_Url | The link to the message composition screen. |
public createMailbox ( string $mbox, array $options = [] ) : Horde_Imap_Client_Mailbox | ||
$mbox | string | The name of the mailbox to create (UTF-8). |
$options | array | Additional options: - full: (boolean) If true, $mbox is a full mailbox name. If false, $mbox will be created in the default namespace. DEFAULT: false |
return | Horde_Imap_Client_Mailbox | The mailbox name created or false on failure. |
public favouriteRecipients ( integer $limit, array $filter = ['new', 'forward', 'reply', 'redirect'] ) : array | ||
$limit | integer | Return this number of recipients. |
$filter | array | A list of messages types that should be returned. Valid types: 'forward', 'mdn', 'new', 'reply', and 'redirect'. A value of null returns all message types. |
return | array | A list with the $limit most favourite recipients. |
public flagMessages ( string $mailbox, array $indices, array $flags, boolean $set ) : boolean | ||
$mailbox | string | The name of the source mailbox (UTF-8). |
$indices | array | The list of UIDs to flag. |
$flags | array | The flags to set. |
$set | boolean | True to set flags, false to clear flags. |
return | boolean | True if successful, false if not. |
public getMaillog ( string $mid ) : Horde_History_Log | ||
$mid | string | The Message-ID to obtain the log for. |
return | Horde_History_Log | The log object. |
public getMaillogChanges ( integer $ts ) : array | ||
$ts | integer | The timestamp to start searching from. Only entries after this timestamp will be returned. |
return | array | An array of Message-IDs that have been changed since $ts. |
public getSpecialMailboxes ( ) |
public imapOb ( ) : Horde_Imap_Client_Base | ||
return | Horde_Imap_Client_Base | The imap object. |
public mailboxList ( array $opts = [] ) : array | ||
$opts | array | Additional options:
- unsub: (boolean) If true, return unsubscribed mailboxes. - reload: (boolean) If true, force reloading the folder tree from the IMAP server. DEFAULT: false |
return | array | The list of IMAP mailboxes. A list of arrays with the
following keys:
- d: (string) The namespace delimiter. - label: (string) Human readable label (UTF-8). - level: (integer) The child level of this element. - ob: (Horde_Imap_Client_Mailbox) A mailbox object. - subscribed: (boolean) True if mailbox is subscribed. |
public searchMailbox ( string $mailbox, Horde_Imap_Client_Search_Query $query ) : array | ||
$mailbox | string | The name of the source mailbox (UTF-8). |
$query | Horde_Imap_Client_Search_Query | The query object. |
return | array | The search results (UID list). |
protected array $_noPerms | ||
return | array |