imap_list
    (PHP 3 >= 3.0.4, PHP 4, PHP 5)
imap_list -- メールボックスのリストを読み込む
説明
array 
imap_list ( resource imap_stream, string ref, string pattern )
     メールボックスの名前を含む配列を返します。
     ref および pattern
     の説明については imap_getmailboxes() を参照ください。
    
     
例 1. imap_list() の例 
<?php $mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN)       or die("接続できません: " . imap_last_error());   $list = imap_list($mbox, "{imap.example.org}", "*"); if (is_array($list)) {     foreach ($list as $val) {         echo imap_utf7_decode($val) . "<br />\n";     } } else {     echo "imap_list が失敗しました: " . imap_last_error() . "\n"; }
  imap_close($mbox); ?>
 |  
  | 
    
     imap_getmailboxes() も参照ください。