imap_listscan
(PHP 4, PHP 5)
imap_listscan — Returns the list of mailboxes that matches the given text
Descrição
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.
Parâmetros
- imap_stream
-
Um stream IMAP retornado por imap_open().
- ref
-
ref should normally be just the server specification as described in imap_open()
- pattern
-
Especifica aonde na hierarquia da caixa de mensagens deve começar a procura.
Existem dois caracteres especiais que você pode passar como parte para o pattern : '*' e '%'. '*' significa retornar todas as caixas de mensagens. Se você passar pattern como '*', você terá uma lista de toda a hierarquia da caixa de mensagens. '%' significa retornar o nível atual apenas. '%' como o parâmetro pattern ira retornar apenas as caixar de mensagem do nível superior; '~/mail/%' em UW_IMAPD irá retornar cada caixa de mensagem no diretório ~/mail, mais nenhuma em subpastas deste diretório.
- content
-
The searched string
Valor Retornado
Returns an array containing the names of the mailboxes that have content in the text of the mailbox.
Veja Também
- imap_listmailbox() - Sinônimo de imap_list
- imap_search() - This function returns an array of messages matching the given search criteria
imap_listscan
