PHP
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, 30 Jan 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, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites