Help With IMAP_OPEN
I can successfully access my mail using the following:
$mbox = imap_open ("{mail.mydomain.com:110/pop3}inbox", $usr, $pwd) or exit("Invalid server, username, or password.\n");
However, I cannot seem to figure out how to access the mail in any other mailbox that I have defined in the domain. Here is the mailbox and folder structure:
php -q listmbox.php
{mail.mydomain.com}INBOX
{mail.mydomain.com}INBOX.Drafts
{mail.mydomain.com}INBOX.Trash
{mail.mydomain.com}INBOX.Sent
{mail.mydomain.com}mydomain.com/forum-test/inbox
{mail.mydomain.com}mydomain.com/forum-test/INBOX.Drafts
{mail.mydomain.com}mydomain.com/forum-test/INBOX.Trash
{mail.mydomain.com}mydomain.com/forum-test/INBOX.Sent
How can I access the following mailbox"
{mail.mydomain.com}mydomain.com/forum-test/inbox
(unix path = /home/myaccount/mail/mydomain.com/forum-test/inbox)
I get the infamous "Warning: imap_open(): Couldn't open stream" error for anything I try. Can I only access the main account INBOX?
|