PHP Displaying unread mail count
问题 I am using php imap class. In my box I have a lot of mail, but with this script I would retrieve only the unreaded mail. How can I do it? if ($mbox=imap_open( "{" . $mailserver . ":" . $port . "}INBOX", $user, $pass )) { echo "Connected\n"; } else { exit ("Can't connect: " . imap_last_error() ."\n"); echo "FAIL!\n"; }; if ($hdr = imap_check($mbox)) { $msgCount = $hdr->Nmsgs; echo "Ci sono ".$msgCount." mail"; } else { echo "Failed to get mail"; } If I do $overview=imap_fetch_overview($mbox,"1