Hi all !

What I am missing?
I have script using IMAP function to open my mailbox- First I open the IMAP
using imap_open. After I read all my messages in my INBOX, up until now,
everything goes well. Now I want to open other folders and I can't.

I've trying these following functions:
- imap_getmailboxes
- imap_listmailbox
- imap_scanmailbox

//////////
$list = imap_getmailboxes($mbox,"{192.168.0.1:110/pop3}","*");
if (!is_null($list)) {
while(list($key,$val)=each($list))
{
print "($key) ";
print imap_utf7_decode($val->name).",";
print "'".$val->delimiter."',";
print $val->attributes."<br>\n";
}

////////

$list = imap_listmailbox($mbox,"{192.168.0.1:110/pop3}","*");
if(is_array($list)) {
 reset($list);
 while (list($key, $val) = each($list))
   print imap_utf7_decode($val)."<br>\n";
} else
 print "imap_listmailbox a échoué: ".imap_last_error()."\n";

Nothing wouldn't work well with me?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to