imap_listscan
(PHP 4, PHP 5)
imap_listscan — Returns the list of mailboxes that matches the given text
Descrierea
$imap_stream
, string $ref
, string $pattern
, string $content
)
Returns an array containing the names of the mailboxes that have
content in the text of the mailbox.
This function is similar to imap_listmailbox(),
but it will additionally check for the presence of the string
content inside the mailbox data.
Parametri
-
imap_stream -
Un flux IMAP întors de imap_open().
-
ref -
refshould normally be just the server specification as described in imap_open() -
pattern -
Specifică poziția în ierarhia cutiilor poștale de unde va începe căutarea.
Sunt două caractere speciale pe care puteți să le transmiteți în cadrul
pattern: '*' și '%'. '*' înseamnă a returna toate cutiile poștale. Dacă transmitețipatternca '*', veți obține o listă a întregii ierarhii a cutiilor poștale. '%' înseamnă a întoarce doar nivelul curent. '%' în calitate depatternva întoarce doar cutiile poștale de la nivelul superior; '~/mail/%' pe UW_IMAPD va întoarce toate cutiile poștale în directorul ~/mail, dar nici una din submapele acstui director. -
content -
The searched string
Valorile întoarse
Returns an array containing the names of the mailboxes that have
content in the text of the mailbox.
Vedeți de asemenea
- imap_listmailbox() - Pseudonim pentru imap_list
- imap_search() - This function returns an array of messages matching the given search criteria
