I've been working with PHP and the IMAP module and I'm just getting more and more lost as I try to achieve what I expected to be simple stuff such as listing the folder names, in example...
Could someone please give me some direction as to what part of IMAP I should use to determine the message count and unread message count per folder?$boxes = imap_getmailboxes($mbox, "{mail.domain.com}", "*");
foreach($boxes as $val) {
$piece1 = explode("}", $val->name);
$piece2 = explode(".", $piece1[1]);
if (empty($piece2[1])) {echo '<div><b>Inbox</b></div>';}



Reply With Quote


Bookmarks