õÞÅÂÎÉË òîò
îÁÚÁÄ ÷ÐÅÒ£Ä

imap_listmailbox

(PHP 3, PHP 4)

imap_listmailbox - ÞÉÔÁÅÔ ÓÐÉÓÏË mailbox'Ï×.

ïÐÉÓÁÎÉÅ

array imap_listmailbox (int imap_stream, string ref, string pattern)

÷ÏÚ×ÒÁÝÁÅÔ ÍÁÓÓÉ×, ÓÏÄÅÒÖÁÝÉÊ ÉÍÅÎÁ mailbox'Ï×. óÍ. × imap_getmailboxes() ÏÐÉÓÁÎÉÅ ÁÒÇÕÍÅÎÔÏ× ref É pattern .

ðÒÉÍÅÒ 1. imap_listmailbox()
$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN) or die("can't connect: ".imap_last_error()); $list = imap_listmailbox($mbox,"{your.imap.host}","*"); if(is_array($list)) { reset($list); while (list($key, $val) = each($list)) print imap_utf7_decode($val)."<br>\n"; } else print "imap_listmailbox failed: ".imap_last_error()."\n"; imap_close($mbox);

îÁÚÁÄ ïÇÌÁ×ÌÅÎÉÅ ÷ÐÅÒ£Ä
imap_last_error ÷×ÅÒÈ imap_listsubscribed