[dev] Fwd: Bug #26831 [Opn->Csd]: New LATT_* constants

Michael M Slusarz slusarz at bigworm.colorado.edu
Thu Jan 8 08:58:56 PST 2004


FYI.  This was asked for in response to the coding I have done on
imp/lib/Tree.php.

michael

----- Forwarded message from php-bugs at lists.php.net -----
    Date: 8 Jan 2004 00:57:19 -0000
    From: PHP Bug Database <php-bugs at lists.php.net>
Reply-To: PHP Bug Database <php-bugs at lists.php.net>
 Subject: Bug #26831 [Opn->Csd]: New LATT_* constants
      To: slusarz at colorado.edu

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at
http://bugs.php.net/?id=26831&edit=2


 ID:               26831
 Updated by:       sniper at php.net
 Reported By:      slusarz at colorado dot edu
-Status:           Open
+Status:           Closed
 Bug Type:         IMAP related
 Operating System: Red Hat Linux 9.0
 PHP Version:      4.3.4
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2004-01-07 14:27:55] slusarz at colorado dot edu

Description:
------------
It appears, as of imap-2002, the following 3 LATT_* constants are now
defined (this code is from imap-2002e/c-client/mail.h:476-481):

                                /* name has referral to remote mailbox
*/
#define LATT_REFERRAL (long) 0x10
                                /* has selectable inferiors */
#define LATT_HASCHILDREN (long) 0x20
                                /* has no selectable inferiors */
#define LATT_HASNOCHILDREN (long) 0x40

These bitmasks are correctly applied (if using imap-2002+) to the
'attributes' results returned from imap_getmailboxes() and
imap_getsubscribed() - there is just no corresponding constant in PHP
yet.  It would probably be good to define these constants if the
underlying c-client supports them.



------------------------------------------------------------------------




----- End forwarded message -----


______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list