Can any one help with what I though would be a simple process.
I connect to our Mail server and can read the contents of the root mailbox. Yet I can't get into any of the folders stored in the root i.e.
INBOX
|
|- SPAM
|
|- INFO
|
L FAMILY
I can access any message stored in the INBOX yet I'm unable to get to SPAM, INFO or FAMILY. The code I am currently using is like this:-
<?php
$mbox = imap_open ("{SERVER:110/pop3}", "microtest.co.uk\chrisjr\update", "kn0bch0ps") or die("can't connect: ".imap_last_error());
$list = imap_list($mbox,"{SERVER:110/pop3}","*");
if(is_array($list))
{
reset($list);
while (list($key, $val) = each($list))
print imap_utf7_decode($val)."<br>\n";
}
else
print "imap_list failed: ".imap_last_error()."\n";
imap_close($mbox);
?>
The output of this is:-
{SERVER:110/pop3}INBOX
I am not sure if this is due to me using IMAP functions on a POP3 mailbox as I am aware that some function do not work correctly but can someone please either correct me or confirm it? 😕