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.

参见

相关文章
php ibm db2 函数 returns the auto generated id of the last insert query that successfully executed on this connectionphp ibm db2 函数 returns an object with properties that describe the db2 database serverphp ftp 函数 returns a list of files in the given directoryphp gnupg 函数 returns an array with information about all keys that matches the given patternphp imap 函数 returns all imap alert messages that have occurredphp imap 函数 decode base64 encoded textphp imap 函数 returns all of the imap errors that have occurredphp imap 函数 read the list of mailboxes returning detailed information on each onephp imap 函数 list all the subscribed mailboxesphp imap 函数 read the list of mailboxesphp imap 函数 returns the list of mailboxes that matches the given textphp imap 函数 list all the subscribed mailboxesphp imap 函数 create a mime message based on given envelope and body sectionsphp imap 函数 returns a properly formatted email address given the mailbox host and personal infophp imap 函数 this function returns an array of messages matching the given search criteriaphp imap 函数 this function returns the uid for the given message sequence numberphp svn 函数 returns a stream to access the contents of a file from a given version of the fsphp svn 函数 returns the length of a file from a given version of the fsphp svn 函数 returns list of directory contents in repository url optionally at revision numberphp hyperwave api 函数 returns a list of all logged in users
关注编程学问公众号