imap_listscan

(PHP 4, PHP 5, PHP 7)

imap_listscanReturns the list of mailboxes that matches the given text

˵��

imap_listscan ( resource $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

�� imap_open() ���ص� IMAP ����

ref

ref should normally be just the server specification as described in imap_open()

Warning

Passing untrusted data to this parameter is insecure, unless imap.enable_insecure_rsh is disabled.

pattern

ָ��������㼶�ĺδ���ʼ���ҡ�

����� pattern ���ַ��п�ʹ�����������ַ��� '*' �� '%'�� '*' ��ָ������������Ŀ¼. ����� '*' ��Ϊ pattern ����ʱ, ��᷵����������㼶�ṹ�� '%' ��ָֻ���ص�ǰ���Ρ� '%' ��Ϊ pattern ������ֻ�᷵�ض������䣻 '~/mail/%' ���� UW_IMAPD ��᷵����Ϊ ~/mail ��Ŀ¼, ������������Ŀ¼��

content

The searched string

����ֵ

Returns an array containing the names of the mailboxes that have content in the text of the mailbox.

�μ�