Fetch message data (see RFC 3501 [6.4.5]).
public fetch ( mixed $mailbox, Horde_Imap_Client_Fetch_Query $query, array $options = [] ) : Horde_Imap_Client_Fetch_Results | ||
$mailbox | mixed | The mailbox to search. Either a Horde_Imap_Client_Mailbox object or a string (UTF-8). |
$query | Horde_Imap_Client_Fetch_Query | Fetch query object. |
$options | array | Additional options: - changedsince: (integer) Only return messages that have a mod-sequence larger than this value. This option requires the CONDSTORE IMAP extension (if not present, this value is ignored). Additionally, the mailbox must support mod-sequences or an exception will be thrown. If valid, this option implicity adds the mod-sequence fetch criteria to the fetch command. DEFAULT: Mod-sequence values are ignored. - exists: (boolean) Ensure that all ids returned exist on the server. If false, the list of ids returned in the results object is not guaranteed to reflect the current state of the remote mailbox. DEFAULT: false - ids: (Horde_Imap_Client_Ids) A list of messages to fetch data from. DEFAULT: All messages in $mailbox will be fetched. - nocache: (boolean) If true, will not cache the results (previously cached data will still be used to generate results) [since 2.8.0]. DEFAULT: false |
리턴 | Horde_Imap_Client_Fetch_Results | A results object. |