Gossamer Forum
Home : General : Internet Technologies :

PHP, IMAP and Priority

Quote Reply
PHP, IMAP and Priority
I am writing a web-based email script and want to denote if a message is marked as Urgent.

What I am doing is:

$MN = $msgCount;
$overview = imap_fetch_overview($mbox,"1:$MN",0);
$size = sizeof($overview);
for ($i=$size-1;$i>=0;$i--) {
$val = $overview[$i];
$flag = $val->flagged;

however, $flag is not being populated. Any insight as to what I am doing wrong?