downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imap_mail_compose> <imap_listsubscribed
Last updated: Fri, 13 Nov 2009

view this page in

imap_lsub

(PHP 4, PHP 5)

imap_lsub購読しているすべてのメールボックスの一覧を得る

説明

array imap_lsub ( resource $imap_stream , string $ref , string $pattern )

購読しているすべてのメールボックスの配列を取得します。

パラメータ

imap_stream

imap_open() が返す IMAP ストリーム。

ref

通常、refimap_open() で述べられているサーバ定義です。

pattern

検索を開始するメールボックスの階層を指定します。

pattern の中で使用できる特別な文字として '*' および '%' があります。 '*' は、すべてのメールボックスを意味します。 pattern に '*' を指定すると、 メールボックス階層全体のリストが得られます。 '%' は現在のレベルのみを意味します。 '%' を pattern に指定すると、 トップレベルのメールボックスのみを返します。UW_IMAPD の場合、 '~/mail/%' は ~/mail ディレクトリ内のすべてのメールボックスを返しますが、 そのディレクトリのサブフォルダにあるメールボックスは返しません。

返り値

購読しているすべてのメールボックスの配列を返します。

参考

  • imap_list() - メールボックスのリストを読み込む
  • imap_getmailboxes() - メールボックスのリストを読み込み、各ボックスに関する詳細な情報を返す



add a note add a note User Contributed Notes
imap_lsub
There are no user contributed notes for this page.

imap_mail_compose> <imap_listsubscribed
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites