note 76677 added to function.imap-getmailboxes
| From: | nedatwgtechd0tcom at osu1 dot php dot net | Date: | Wed, 25 Jul 2007 20:07:22 +0000 |
| Subject: | note 76677 added to function.imap-getmailboxes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128926@lists.php.net to get a copy of this message | ||
Just to simplify what Mohamed Abbas said to get right to the heart of the matter:
You have 7 constants to test against:
LATT_NOINFERIORS, LATT_NOSELECT, LATT_MARKED, LATT_UNMARKED, LATT_REFERRAL, LATT_HASCHILDREN, and
LATT_HASNOCHILDREN.
You do a bitmask test against attributes to test the value; in in PHPese:
if ($val->attributes & LATT_HASNOCHILDREN) {
echo 'this has children';
}
Don't make it more complicated than you have to.
----
Server IP: 209.41.74.194
Probable Submitter: 66.186.179.99
----
Manual Page -- http://www.php.net/manual/en/function.imap-getmailboxes.php
Edit -- https://master.php.net/note/edit/76677
Del: integrated -- https://master.php.net/note/delete/76677/integrated
Del: useless -- https://master.php.net/note/delete/76677/useless
Del: bad code -- https://master.php.net/note/delete/76677/bad+code
Del: spam -- https://master.php.net/note/delete/76677/spam
Del: non-english -- https://master.php.net/note/delete/76677/non-english
Del: in docs -- https://master.php.net/note/delete/76677/in+docs
Del: other reasons-- https://master.php.net/note/delete/76677
Reject -- https://master.php.net/note/reject/76677
Search -- https://master.php.net/manage/user-notes.php