imap_status -- This function returns status information on a mailbox other than the current one.


object imap_status(int imap_stream, string mailbox, int options);

This function returns an object containing status information. Valid flags are:

status->flags is also set, which contains a bitmask which can be checked against any of the above constants.