Search for messages within a date range.
public dateSearch ( mixed $date, string $range, boolean $header = true, boolean $not = false, array $opts = [] ) | ||
$date | mixed | DateTime or Horde_Date object. |
$range | string | Either: - Horde_Imap_Client_Search_Query::DATE_BEFORE - Horde_Imap_Client_Search_Query::DATE_ON - Horde_Imap_Client_Search_Query::DATE_SINCE |
$header | boolean | If true, search using the date in the message headers. If false, search using the internal IMAP date (usually arrival time). |
$not | boolean | If true, do a 'NOT' search of the range. |
$opts | array | Additional options: - fuzzy: (boolean) If true, perform a fuzzy search. The IMAP server MUST support RFC 6203. |