(PHP 4, PHP 5, PHP 7)
imap_listscan — Returns the list of mailboxes that matches the given text
$imap_stream
, string $ref
, string $pattern
, string $content
) : array
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.
imap_stream
Un flux IMAP întors de imap_open().
ref
ref should normally be just the server
specification as described in imap_open()
Passing untrusted data to this parameter is insecure, unless imap.enable_insecure_rsh is disabled.
patternSpecifică 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ți pattern ca '*',
veți obține o listă a întregii ierarhii a cutiilor poștale.
'%' înseamnă a întoarce doar nivelul curent.
'%' în calitate de pattern
va î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.
contentThe searched string
Returns an array containing the names of the mailboxes that have
content in the text of the mailbox.